Skip to main contentModule terminal
Source - ShutdownSignal
- Write-end of the shutdown pipe.
- StdinRelay
- epoll-based event multiplexer for stdin, SIGWINCH, and shutdown.
Linux equivalent of macOS kqueue-based StdinRelay.
- TerminalState
- Saved terminal state for later restoration.
- StdinEvent
- Events returned by
StdinRelay::wait().
- read_raw
- Read bytes from a raw file descriptor.
Returns the number of bytes read, or 0 on EOF/error.
- terminal_size
- Get the terminal size (rows, cols) for the given fd.
Returns (24, 80) as fallback if the ioctl fails.