Skip to main content

Module state

Module state 

Source
Expand description

Core types for the TUI display server state.

The state hierarchy is: TuiState → TuiSession → TuiWindow → TuiPane. Each pane owns a ratatui Buffer for cell storage and tracks damage via bitmask.

Structs§

CursorState
Cursor state for a pane.
PaneBuffer
A pane’s cell buffer with damage tracking.
ScrollOp
A scroll operation recorded for incremental diff encoding.
TuiPane
A single terminal pane with primary and alternate screen buffers.
TuiSession
A TUI session containing one or more windows.
TuiState
Top-level TUI multiplexer state.
TuiWindow
A window containing one or more panes in a layout tree.

Enums§

CursorShape
Cursor shape (matches DEC private mode sequences).
IngestionMode
How a pane receives content.
LayoutNode
Layout tree node for window pane arrangement.
PaneBackend
How the server manages a pane’s content.
TuiEvent
Events broadcast from the TUI state to viewers and the 9P filesystem.