Expand description
Typed pseudo-terminal sessions for deterministic TUI driving.
This crate owns the process/PTY/VT mechanics shared by Harn host capabilities and product-level terminal smoke tests. It deliberately has no VM or product dependency: callers supply an argv vector and receive a typed screen capture rather than terminal escape bytes.
Structs§
- Cell
Capture - One typed cell from a requested capture rectangle.
- Cell
Region - Optional bounded rectangle for detailed cell capture.
- Screen
Capture - Typed snapshot of the current visible screen and child state.
- Session
Options - Options used to start one terminal session.
- Terminal
Session - A live pseudo-terminal session with typed VT state.
- Wait
Idle Result - Result returned once a session has been quiet for the requested interval.
Enums§
- Input
Event - One input event sent to a terminal session.
- KeyCode
- One key identity.
- Modifier
- A modifier held while sending a typed key.
- Named
Key - Named terminal key.
- Process
Status - Current child-process state.
- Terminal
Color - Terminal color attached to a captured cell.
- Terminal
Error - Errors returned by terminal-session operations.
Constants§
- DEFAULT_
RAW_ CAPACITY - Default bounded raw-output history retained for diagnostics.
- MAX_
CAPTURE_ CELLS - Maximum number of detailed cells returned by one capture.
- MAX_
DIMENSION - Maximum supported rows or columns for one terminal.
- MAX_
INPUT_ BYTES - Maximum encoded input accepted by one send operation.