Expand description
Redirect OS-level file descriptors (stdout/stderr) into tracing.
macOS system frameworks (AppKit, NSPasteboard) and C libraries often write
debug output directly to FD 1 or 2. When the terminal is in raw/alt-screen
mode this junk leaks to the display. These helpers pipe the FD through a
background thread into tracing. (The StderrSuppressGuard — a
short-lived null-device redirect for arboard — lives in this crate’s
sibling stderr_suppress module.)
Functions§
- redirect_
fd - Redirect an OS-level file descriptor into a callback.
- redirect_
fd_ to_ tracing - Convenience wrapper: redirects an FD and feeds lines into
tracing.