termize 0.2.1

functions for determining terminal sizes and dimensions
Documentation
1
2
3
4
5
6
7
fn main() {
    if let Some((w, h)) = termize::dimensions() {
        println!("nice! your terminal is of {w}x{h} dimensions");
    } else {
        eprintln!("couldn't read terminal size :(");
    }
}