Function terminal_size::terminal_size_using_fd[][src]

pub fn terminal_size_using_fd(fd: RawFd) -> 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