Function terminal_size::terminal_size [−][src]
pub fn terminal_size() -> Option<(Width, Height)>
Returns the size of the terminal defaulting to STDOUT, if available.
If STDOUT is not a tty, returns None
pub fn terminal_size() -> Option<(Width, Height)>
Returns the size of the terminal defaulting to STDOUT, if available.
If STDOUT is not a tty, returns None