Documentation
¶
Overview ¶
Package termscreen reads a tmux pane capture WITH its styles (`tmux capture-pane -p -e`) into rows of cells. It is the one SGR reader: ccdialog reads Claude Code's ghost suggestion by dim.
🔴 A LEAF: it imports only the standard library. cmd/ccd links it (through ccdialog) into the agent pod, which internal/modulegate holds to no network or storage client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cell ¶
Cell is one character of a captured screen, whether it is italic, whether it is dim (faint, SGR 2: Claude Code draws its ghost prompt suggestion so — ccdialog.InputBox reads it), and whether it has a background colour (Bg).
type Screen ¶
type Screen struct {
Rows [][]Cell
}
Screen is a pane as `tmux capture-pane -p -e` prints it: its rows, top to bottom, as cells.
func ParseScreen ¶
ParseScreen reads a `capture-pane -p -e` capture. Of SGR only italic (3 on; 23, 0 or an empty SGR off), dim (2 on; 22, 0 or an empty SGR off) and whether a background colour is set (40-47, 100-107, 48;…; 49, 0 or an empty SGR off) are kept; every other escape sequence is dropped. A sequence it cannot read ends at the next letter, never later.