TerminalInputEncoder
interface 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.