Skip to main content

Module input

Module input 

Source
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§

GridAttr
Grid cell attributes matching tmux GRID_ATTR_*.
mode
Mode flag bits matching tmux tmux.h:660-680.

Structs§

CellState
Character set and cell state for the parser, matching tmux input_cell.
InputParam
A single parsed parameter.
InputParser
Per-pane VT input parser, matching tmux input_ctx.
SavedState
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).
InputAction
Actions that the parser surfaces to the caller.
InputEndType
Type of string terminator seen for OSC/DCS.
InputState
The 17 parser states matching tmux exactly.
OscColourSlot
Colour slots reported to OSC 10/11/12 queries.
OscCommand
OSC command numbers.
ParamType
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§

ScreenWriter
Screen-write abstraction trait.

Functions§

colour_join_rgb
Compose an RGB colour from r, g, b components.

Type Aliases§

Colour
A terminal colour value.