TerminalInputEncoder

Encodes UI-level terminal input events into host-bound bytes.

Implementations are responsible for reading the current input-facing mode state at the appropriate event boundary and writing the resulting bytes to a host output sink.

Functions

Link copied to clipboard
abstract fun encodeFocus(event: TerminalFocusEvent)

Encodes one focus transition event.

Link copied to clipboard
abstract fun encodeKey(event: TerminalKeyEvent)

Encodes one keyboard event.

Link copied to clipboard
abstract fun encodeMouse(event: TerminalMouseEvent)

Encodes one mouse event.

Link copied to clipboard
abstract fun encodePaste(event: TerminalPasteEvent)

Encodes one paste event.

Link copied to clipboard

Updates the input policy dynamically.