Skip to main content

Module terminal

Module terminal 

Source

Structs§

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.

Enums§

StdinEvent
Events returned by StdinRelay::wait().

Functions§

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.