Function termion::terminal_size

source ·
pub fn terminal_size() -> Result<(u16, u16)>
Expand description

Get the size (columns, rows) of the terminal.

Examples found in repository?
examples/size.rs (line 6)
5
6
7
fn main() {
    println!("Size is {:?}", terminal_size().unwrap())
}