Expand description
Real PTY implementation using portable-pty
This module provides a true pseudo-terminal interface for interactive shell sessions, enabling proper handling of:
- ANSI escape sequences and colors
- Interactive programs (sudo, vim, less, etc.)
- Terminal resize events
- Job control signals (Ctrl+C, Ctrl+Z, etc.)
Structs§
- PtyShell
- Real PTY-based interactive shell
Constants§
- DEFAULT_
COLS - Default terminal dimensions (columns x rows)
- DEFAULT_
ROWS - RING_
BUFFER_ LINES - How many fully-formed lines to keep in the per-shell ringbuffer. Callers can
ask for at most this many lines of historical context via
StatusCheck.scrollback_lines.
Functions§
- create_
shared_ pty - Create a new shared PTY shell
Type Aliases§
- Shared
PtyShell - Thread-safe wrapper for
PtyShell