Crate termsize_alt

source ·
Expand description

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

  • Container for number of rows and columns

Functions

  • Gets the current terminal size