Skip to main content

Module pty

Module pty 

Source
Expand description

PTY session management.

The PTY implementation only needs portable-pty, so it compiles identically in TUI and headless builds with no feature gating.

Structs§

PtyCommandRequest
PtyCommandResult
PtyManager
PtyPreviewRenderer
In-memory PTY preview renderer for inline live previews.
PtySize
Represents the size of the visible display area in the pty

Enums§

PtyCloseMode
Termination behavior used when closing a PTY session.

Functions§

is_cargo_command
Check if a command uses cargo, which requires exclusive file lock access
is_cargo_command_string
Check if a command string (potentially passed via shell -c) is a cargo command
is_development_toolchain_command
Resolve program path - if program doesn’t exist in PATH, return None to signal shell fallback. This allows the shell to find programs installed in user-specific directories.

Type Aliases§

PtyOutputCallback
Callback type for receiving streaming PTY output chunks