Expand description
tmux-compatible VT parser state machine, CSI/ESC/OSC dispatch, and SGR. tmux-compatible VT parser state machine.
It implements DEC-style terminal parsing for tmux-compatible streams.
This module provides the parser, state tables, command enums, parameter
splitting, and SGR logic as pure safe Rust. Screen-write effects are
delegated through the crate::input::ScreenWriter trait.
Modules§
- Grid
Attr - Grid cell attributes matching tmux
GRID_ATTR_*. - mode
- Mode flag bits matching tmux
tmux.h:660-680.
Structs§
- Cell
State - Character set and cell state for the parser, matching tmux
input_cell. - Input
Param - A single parsed parameter.
- Input
Parser - Per-pane VT input parser, matching tmux
input_ctx. - Saved
State - Saved state for DECSC/DECRC.
Enums§
- CsiCommand
- CSI command types (40 entries).
- DcsPayload
- DCS payload delivered to the screen writer.
- EscCommand
- ESC sequence commands (15 entries).
- Input
Action - Actions that the parser surfaces to the caller.
- Input
EndType - Type of string terminator seen for OSC/DCS.
- Input
State - The 17 parser states matching tmux exactly.
- OscColour
Slot - Colour slots reported to OSC 10/11/12 queries.
- OscCommand
- OSC command numbers.
- Param
Type - Parameter type discriminant.
Constants§
- COLOUR_
DEFAULT - Default colour sentinel.
- COLOUR_
FLAG_ 256 - Flag for 256-colour palette indices.
- COLOUR_
FLAG_ RGB - Flag for true-colour RGB values.
- COLOUR_
NONE - No-colour sentinel used by tmux
colour_tostring. - COLOUR_
TERMINAL - Terminal colour sentinel.
Traits§
- Screen
Writer - Screen-write abstraction trait.
Functions§
- colour_
join_ rgb - Compose an RGB colour from r, g, b components.
Type Aliases§
- Colour
- A terminal colour value.