termion/examples/size.rs

8 lines
121 B
Rust
Raw Normal View History

2016-03-08 09:08:50 +00:00
extern crate libterm;
use libterm::terminal_size;
fn main() {
println!("Size is {:?}", terminal_size().unwrap())
}