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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The number of queued response bytes currently waiting to be read.

Functions

Link copied to clipboard
abstract fun clearResponseBytes()

Discards all queued response bytes from this channel.

Link copied to clipboard
abstract fun queryDynamicColor(target: Int)

Enqueues the color query response for a dynamic target (10, 11, or 12).

Link copied to clipboard
abstract fun queryPaletteColor(index: Int)

Enqueues the color query response for a specific 256-color palette index.

Link copied to clipboard
abstract fun queryStatusString(query: String)

Enqueues the response for a DCS DECRQSS request.

Link copied to clipboard
abstract fun queryTerminfo(rawPayload: String)

Enqueues the response for a DCS XTGETTCAP request.

Link copied to clipboard
abstract fun readResponseBytes(dst: ByteArray, offset: Int = 0, length: Int = dst.size - offset): Int

Reads up to length queued response bytes into dst.

Link copied to clipboard
abstract fun requestDeviceAttributes(kind: Int, parameter: Int)

Enqueues a device attributes (DA) report response.

Link copied to clipboard
abstract fun requestDeviceStatusReport(mode: Int, decPrivate: Boolean)

Enqueues a device status report (DSR) response.

Link copied to clipboard
abstract fun requestWindowReport(mode: Int)

Enqueues a window report response.

Link copied to clipboard
abstract fun setWindowMinimized(minimized: Boolean)

Updates the recorded window minimization state.

Link copied to clipboard
abstract fun setWindowSizePixels(width: Int, height: Int)

Updates the recorded window size in pixels.