Skip to main content

term_sys_io/
lib.rs

1//! Low-level cross-platform OS I/O primitives for term-wm.
2//!
3//! This leaf crate is the **single** home for all unsafe process-global
4//! FD/handle manipulation in the workspace: stderr suppression and
5//! pipe-based FD redirection.  It sits at the bottom of the dependency graph
6//! (`libc` + `tracing` only) so `term-clipboard`, `term-wm-pty-engine`,
7//! `term-session-client`, and the root package can all depend downward on it
8//! without cycles.
9
10pub mod redirect_stdio;
11pub mod stderr_suppress;
12
13pub use redirect_stdio::{redirect_fd, redirect_fd_to_tracing};
14pub use stderr_suppress::StderrSuppressGuard;