pub fn terminal_size_using_tty() -> Option<(Width, Height)>
Unlike terminal_size::terminal_size() which uses stdout, this opens /dev/tty if possible, then falls back to the former.
terminal_size::terminal_size()
/dev/tty