termsize 0.1.9

Retrieves terminal size
Documentation
1
2
3
4
5
6
pub fn main() {
    match termsize::get() {
        Some(size) => println!("{:?}", size),
        _ => println!("not a term"),
    }
}