Function terminal_size_using_tty

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

Unlike terminal_size::terminal_size() which uses stdout, this opens /dev/tty if possible, then falls back to the former.