KetraTerm
API · DevelopmentAll versions

Package-level declarations

Types

Link copied to clipboard
interface TerminalCursor

Cursor-movement contract for the terminal buffer.

Link copied to clipboard

Caller-serialized image admission and placement on the active terminal screen. Images live outside text cells and appear through the render-frame image API. Mutation, response draining and frame reads require the buffer's usual external serialization; session hosts use their session boundary.

Link copied to clipboard

Narrow reader for terminal-to-host response bytes.

Link copied to clipboard

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.

Link copied to clipboard

Allocating inspection contract for the terminal buffer.

Link copied to clipboard
interface TerminalLine

Read-only borrowed view of one physical terminal line.

Link copied to clipboard

Public contract for the packed terminal mode bit layout.

Link copied to clipboard

Mode-control contract for the terminal buffer.

Link copied to clipboard

Read-only public access to durable terminal mode state.

Link copied to clipboard
data class TerminalModeSnapshot(val isInsertMode: Boolean, val isAutoWrap: Boolean, val isApplicationCursorKeys: Boolean, val isApplicationKeypad: Boolean, val isBackarrowKeyModeExplicit: Boolean, val isBackarrowKeySendsBackspace: Boolean, val isOriginMode: Boolean, val isNewLineMode: Boolean, val isLeftRightMarginMode: Boolean, val isReverseVideo: Boolean, val isCursorVisible: Boolean, val isCursorBlinking: Boolean, val isBracketedPasteEnabled: Boolean, val isFocusReportingEnabled: Boolean, val treatAmbiguousAsWide: Boolean, val mouseTrackingMode: MouseTrackingMode, val mouseEncodingMode: MouseEncodingMode, val modifyOtherKeysMode: Int, val formatOtherKeysMode: Int, val kittyKeyboardFlags: Int, val isSynchronizedOutput: Boolean, val isBellIsUrgent: Boolean, val isPopOnBell: Boolean)

Immutable snapshot of the published typed mode subset listed by this constructor.

Link copied to clipboard
interface TerminalReader

Zero-allocation read contract for the terminal buffer.

Link copied to clipboard

Core state with a render-frame projection of that same state.

Link copied to clipboard

Terminal-to-host response channel.

Link copied to clipboard
interface TerminalWriter

Write-side contract for the terminal buffer.