Skip to main content

Module session

Module session 

Source
Expand description

PTY session for driving a real TUI binary.

PtySession spawns a compiled binary inside a pseudo-terminal using portable-pty, sets deterministic rows and columns, and provides methods to write input and read the raw ANSI byte stream. The session can capture a TerminalFrame snapshot at any point for semantic inspection.

Structs§

PtySession
A live PTY session driving a real TUI binary.
PtySessionBuilder
Builder for configuring a PtySession before spawning.

Enums§

PtySessionError
Errors that can occur during PTY session operations.