Module pty

Module pty 

Source
Expand description

PTY (Pseudo-terminal) support for interactive SSH sessions.

This module provides true PTY allocation with full terminal emulation capabilities including terminal resize handling, raw mode support, and proper handling of colors and special keys.

Re-exports§

pub use session::PtySession;
pub use terminal::force_terminal_cleanup;
pub use terminal::TerminalState;
pub use terminal::TerminalStateGuard;
pub use utils::*;

Modules§

session
PTY session management for interactive SSH connections.
terminal
Terminal state management for PTY sessions.
utils
Utility functions for PTY operations

Structs§

PtyConfig
PTY session configuration
PtyManager
PTY manager for handling multiple PTY sessions

Enums§

PtyMessage
Terminal input/output message Uses SmallVec to avoid heap allocations for small messages (typical for key presses)
PtyState
PTY session state