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§
- Size
- Container for number of rows and columns
Functions§
- get
- Gets the current terminal size