term-wm-pty-engine 0.9.24-alpha

Cross-platform PTY engine for term-wm (Unix PTY and Windows ConPTY), with vt100 emulation and OSC/clipboard handling.
Documentation
pub mod input_encoding;
#[cfg(windows)]
pub mod job_object;
pub mod pane;
pub mod pty;
pub mod pty_state_tracker;
pub mod signal;
pub mod title;

pub use input_encoding::{ctrl_char, key_to_bytes, mouse_event_allowed, mouse_event_to_bytes};
pub use pane::Pane;
pub use pty::{Pty, PtyResult};
pub use pty_state_tracker::{
    DirectInputMode, DirectInputTracker, MouseTrackingMode, PtyStateTracker,
};

/// Status notifications from the PTY reader thread to the main loop.
/// The engine crate is agnostic about `WindowKey` and `UnifiedEvent`.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum PtyStatus {
    /// New screen data available for rendering.
    Wakeup,
    /// Child process exited / EOF on PTY master.
    Exited,
    /// Application input routing state changed. Carries the new mode snapshot
    /// so sub-mode shifts (e.g. alt screen → +mouse tracking) notify even when
    /// the aggregate boolean is unchanged.
    DirectInputChanged(DirectInputMode),
}