Function terminal_size::terminal_size_using_fd
source · [−]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
Returns the size of the terminal using the given file descriptor, if available.
If the given file descriptor is not a tty, returns None