Crate termsize [] [src]

termsize is a tiny crate that provides a simple interface for retrieving the current terminal interface size

extern crate termsize;
termsize::get().map(|size| {
  println!("rows {} cols {}", size.rows, size.cols)
});

Structs

Size

Size

Functions

get

Gets the current terminal size