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