Documentation
¶
Overview ¶
Package parsing converts a terminal byte stream into ANSI/DEC parser events.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
Print func(rune)
Execute func(byte)
CSI func(Command, []Parameter)
Escape func(Command)
// OSC receives an operating system command. Command is its leading
// numeric identifier, or -1 when it has none; data follows the separating
// semicolon.
OSC func(command int, data []byte)
// DCS receives a device control string's command, parameters, and data.
DCS func(Command, []Parameter, []byte)
// ControlString reports a PM, APC, or SOS string; kind is "PM", "APC",
// or "SOS". Their content is not delivered.
ControlString func(kind string)
}
Handler receives parser events synchronously during Parser.Write. Control string data is valid only for the duration of the call.
type Parameter ¶
Parameter is one CSI parameter. Present distinguishes an omitted parameter from an explicit zero. More reports that a subparameter follows.