term-wm-pty-engine 0.9.6-alpha

Cross-platform PTY engine for term-wm (Unix PTY and Windows ConPTY), with vt100 emulation and OSC/clipboard handling.
Documentation
pub mod clipboard;
pub mod input_encoding;
#[cfg(windows)]
pub mod job_object;
pub mod pane;
pub mod pty;
pub mod pty_state_tracker;
pub mod redirect_stdio;
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::{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 (alt screen, mouse tracking, margins).
    DirectInputChanged(bool),
}