Function terminal_size

Source
pub fn terminal_size() -> Option<(Width, Height)>
Expand description

Returns the size of the terminal, if available.

If STDOUT is not a tty, returns None