[go: up one dir, main page]

Function 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)
5fn main() {
6    println!("Size is {:?}", terminal_size().unwrap())
7}