Documentation
¶
Overview ¶
Package vtmode scans a terminal byte stream for DEC private-mode set/reset sequences. Shared by the daemon (to replay modes on attach) and the desktop TUI (to know when the agent owns the mouse).
Index ¶
Constants ¶
const ScrollbackLines = 10000
ScrollbackLines is the emulator history depth, shared so the desktop TUI's pager can page back through exactly what the daemon-side emulator retains.
Variables ¶
This section is empty.
Functions ¶
func UpdatePrivateModes ¶
UpdatePrivateModes scans b for DEC private-mode set/reset sequences (ESC [ ? params h/l) and applies them to modes: set on 'h', delete on 'l'. A sequence split across chunks won't match; that's rare (escapes are tiny vs. chunk size) and self-corrects on the next mode change. claude sets its modes once at startup in a single chunk, so they're captured reliably.
Types ¶
This section is empty.