pub fn get() -> Option<Size>
Gets the current terminal size
1 2 3 4 5 6
pub fn main() { match termsize::get() { Some(size) => println!("{:?}", size), _ => println!("not a term"), } }