libvt.parser¶
Clean-room VT500 streaming byte parser and SGR parameter decoder.
State transitions follow Paul Flo Williams’ public DEC ANSI parser state
diagram (ECMA-48 / DEC STD 070) with UTF-8 multi-byte decoding, 7-bit string
escape isolation via ParserState.STRING_ESC, optional legacy Latin-1
8-bit C1 wire parsing, and bounded parameter and string buffers.
-
class libvt.parser.ActionSink¶class libvt.parser.ActionSink¶
Bases:
ProtocolZero-allocation callback target for
Parser.feed_to().
-
class libvt.parser.ApcDispatch¶class libvt.parser.ApcDispatch¶
Bases:
objectCompleted Application Program Command (
APC), e.g. Kitty graphics.
-
class libvt.parser.CsiDispatch¶class libvt.parser.CsiDispatch¶
Bases:
objectCompleted
CSIcontrol sequence.
-
class libvt.parser.CsiParams¶class libvt.parser.CsiParams¶
Bases:
objectParsed CSI parameter list preserving
;vs:subparameter boundaries.
-
class libvt.parser.DcsDispatch¶class libvt.parser.DcsDispatch¶
Bases:
objectCompleted Device Control String (
DCS), includingSIXEL.
-
class libvt.parser.EscDispatch¶class libvt.parser.EscDispatch¶
Bases:
objectCompleted two- or multi-byte
ESCsequence.
-
class libvt.parser.Execute¶class libvt.parser.Execute¶
Bases:
objectC0 control byte executed immediately.
-
class libvt.parser.OscDispatch¶class libvt.parser.OscDispatch¶
Bases:
objectCompleted Operating System Command (
OSC).
-
class libvt.parser.Parser¶class libvt.parser.Parser¶
Bases:
objectStreaming VT500 / ANSI escape-sequence byte parser.
-
class libvt.parser.ParserState¶class libvt.parser.ParserState¶
Bases:
IntEnumStates of the DEC ANSI / VT500 byte state machine.