Holds the complete state and runtime resources for a single pseudo-terminal
(PTY) instance. This includes configuration, process identifiers, and
handles for I/O tasks.
Thread-safe handle around a portable-pty master PTY. We keep the handle
alive past CreateTerminal so Resize / drop-to-kill semantics work. Not
Clone / Serialize; the surrounding struct marks it #[serde(skip)].