TerminalResponseChannel
Terminal-to-host response channel.
Host applications should drain these bytes and write them to the PTY/process input side. Parser/host code should use the request methods; core owns response contents that depend on core state such as cursor position.
Inheritors
Properties
Functions
Discards all queued response bytes from this channel.
Enqueues the color query response for a dynamic target (10, 11, or 12).
Enqueues the color query response for a specific 256-color palette index.
Enqueues the response for a DCS DECRQSS request.
Enqueues the response for a DCS XTGETTCAP request.
Enqueues a device attributes (DA) report response.
Enqueues a device status report (DSR) response.
Enqueues an allowlisted XTQFMTKEYS reply using the active format resource. Unknown and reserved resources stay silent; this protocol defines no failure reply. Host adapters must enforce terminal-response policy before calling this API.
Enqueues an allowlisted xterm key-modifier option response.
Enqueues the active Kitty keyboard progressive-enhancement flags as a parameterless CSI ? u query response. Core reports only flags retained by its supported-mode mask.
Enqueues one ANSI or DEC private DECRPM reply (CSI [?] mode;status $ y). The explicit mode allowlist returns status 0 for unsupported queries. Negative identifiers produce no response. Queries do not mutate modes or invalidate rendering. Invoke under the same synchronization as core mutation. Host adapters must enforce terminal-response policy before calling this API.
Enqueues an allowlisted window report response using current host geometry. Pixel-size query reports remain silent when the host has not supplied usable dimensions. Cell pixel dimensions use the integer text-area pixel size divided by the grid dimensions. Callers must enforce terminal-response permission for application queries.
Publishes host permission for automatic color-scheme and resize reports.
Updates the recorded window minimization state.
Updates the recorded text-area size in pixels, excluding host padding. A changed size emits a subscribed mode 2048 report when permitted. Use the pixel-aware TerminalBuffer.resize overload when both grid and pixel dimensions change so one report describes the completed resize. If either dimension is nonpositive, both are recorded as unknown zero.