TerminalConnector

Transport-neutral terminal byte connector.

A connector owns any transport-specific reader, watcher, or writer threads. The terminal session that uses the connector owns parser/core synchronization and host-bound byte ordering.

Functions

Link copied to clipboard
abstract override fun close()

Requests local transport shutdown.

Link copied to clipboard
abstract fun resize(columns: Int, rows: Int)

Resizes the remote terminal transport in character cells.

Link copied to clipboard
abstract fun start(listener: TerminalConnectorListener)

Starts delivering transport events to listener.

Link copied to clipboard
abstract fun write(bytes: ByteArray, offset: Int = 0, length: Int = bytes.size)

Writes a contiguous byte range to the remote host input stream.