Expand description
CLI handlers for TUI display server commands.
Supports: attach, new, list, detach, play.
The attach command connects to the TUI service, enters raw terminal mode,
and forwards ANSI frames to stdout / stdin to the session. Other commands
send single RPC requests and print the result.
Uses the generated TuiClient from services/generated.rs for typed RPC
where codegen covers the method, and raw Cap’n Proto for UInt32 variants
(list_windows, disconnect, etc.) that codegen doesn’t generate client methods for.
Functions§
- create_
tui_ client - Create a TuiClient for RPC calls.
- enter_
raw_ mode - Enter raw terminal mode. Returns the original termios for restoration.
- forward_
process_ output - Forward process output to the TUI service via sendInput RPC calls.
- handle_
tui_ attach - Attach to an existing TUI session.
- handle_
tui_ detach - Detach from current TUI session.
- handle_
tui_ list - List active TUI sessions.
- handle_
tui_ new - Create a new TUI session.
- handle_
tui_ play - Play an asciicast v2 recording in a TUI pane.
- restore_
terminal - Restore terminal to original mode.
- terminal_
size - Get the terminal size, defaulting to 80x24.