TerminalHostOutput
interface TerminalHostOutput
Host-bound byte sink used by terminal input encoders.
Implementations typically forward bytes to PTY stdin or another process input stream. All methods are synchronous from the caller's perspective: when a method returns, the provided data has either been consumed or copied.
Ordering across different terminal-to-host producers is the responsibility of the caller. A terminal host should serialize UI input reports (keyboard, mouse, paste, focus) and parser/core responses (DSR, CPR, DA, and future OSC/DCS replies) through one terminal event loop or actor before writing to this sink. Concurrent calls from independent threads have no ordering guarantee unless the implementation explicitly provides one.