Skip to main content

Crate harn_terminal

Crate harn_terminal 

Source
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§

CellCapture
One typed cell from a requested capture rectangle.
CellRegion
Optional bounded rectangle for detailed cell capture.
ScreenCapture
Typed snapshot of the current visible screen and child state.
SessionOptions
Options used to start one terminal session.
TerminalSession
A live pseudo-terminal session with typed VT state.
WaitIdleResult
Result returned once a session has been quiet for the requested interval.

Enums§

InputEvent
One input event sent to a terminal session.
KeyCode
One key identity.
Modifier
A modifier held while sending a typed key.
NamedKey
Named terminal key.
ProcessStatus
Current child-process state.
TerminalColor
Terminal color attached to a captured cell.
TerminalError
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.