Skip to main content

Module pty

Module pty 

Source
Expand description

PTY session management.

When the tui feature is enabled, the full PTY implementation is compiled in from submodules. When disabled, a no-op PtyManager stub and shared types are provided so callers compile without feature-gating every call.

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

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