Skip to main content

Module input

Module input 

Source
Expand description

Layer 2a: the input parser. It splits TSP replies and events, and DA1 answers, out of the pty’s input and passes every other byte through as key bytes, exactly as they came.

A TSP message is ESC _ tsp; (or ESC ] 877;tsp; through a Windows ConPTY), then <verb>[;k=v]*;<body>, ended by ST or BEL. Bytes inside a bracketed paste pass through unexamined, so pasted text can never forge an event.

Structs§

Parser
The streaming input parser.

Enums§

Item
One thing the parser found in the input.

Constants§

MAX_MESSAGE
A TSP message that grows past this many bytes unterminated is dropped.