KetraTerm
API · DevelopmentAll versions

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. Repeated calls are safe and do not release resources or notify listeners more than once. May precede start.

Link copied to clipboard

Returns the current foreground executable name, without arguments or a path.

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 - offset)

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