get

Function get 

Source
pub fn get() -> Option<Size>
Expand description

Gets the current terminal size

Examples found in repository?
examples/ts.rs (line 2)
1pub fn main() {
2    match termsize::get() {
3        Some(size) => println!("{:?}", size),
4        _ => println!("not a term"),
5    }
6}