//! Outer-terminal resize propagation into the sandbox PTY.
//!
//! When the real terminal is resized, SIGWINCH fires (see sigwinch.rs), we
//! read the new outer size, resize the inner pty to `(rows-1, cols)` — one
//! row stays reserved for the statusline — and the kernel then delivers
//! SIGWINCH to the agent's foreground group on the pty. No manual signaling.
use RawFd;
use set_winsize;
/// Apply a resize now (ignores the SIGWINCH latch). Returns the inner size.
/// If the SIGWINCH latch is set, propagate the outer size into the pty.
/// Returns the new inner size when a resize was applied.