pub fn terminal_size() -> Result<(u16, u16)>
Get the size (columns, rows) of the terminal.
5 6 7
fn main() { println!("Size is {:?}", terminal_size().unwrap()) }