True when both stdin and stdout are TTYs (raw-mode interactive relay).
Restore terminal state (raw mode off, listeners removed).
OptionalonRegister a window-resize listener (interactive only).
Start reading input; onChunk per chunk, onEnd once at EOF.
Current terminal size reported to the device.
Write raw device output bytes to the user's terminal.
The stdio/terminal seam
terminaldrives, injectable so the relay is testable without a real TTY. The CLI wiresprocess.*; a test can pass scripted streams.