[][src]Function terminal_size::terminal_size

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

Returns the size of the terminal defaulting to STDOUT, if available.

Note that this returns the size of the actual command window, and not the overall size of the command window buffer