KetraTerm
API · DevelopmentAll versions

TerminalInputState

Primitive, read-only access to the published packed mode subset used by input encoders. Factory-created buffers read this word atomically without constructing a snapshot object. Implementations must return one coherent word per call; capture it once when decoding multiple fields for one decision. This does not synchronize separate grid or cursor reads.

Inheritors

Types

Link copied to clipboard
object Companion

Helper methods for constructing and decoding packed input mode snapshots.

Functions

Link copied to clipboard
abstract fun getInputModeBits(): Long

Returns one coherent snapshot of the fields defined by TerminalModeBits and this interface's decoding helpers. Existing numeric meanings are stable. Ignore unassigned bits; future state families need not fit in this word.