Function terminal_size::terminal_size_of
source · pub fn terminal_size_of<Fd: AsFd>(fd: Fd) -> Option<(Width, Height)>
Expand description
Returns the size of the terminal using the given file descriptor, if available.
If the given file descriptor is not a tty, returns None