Function clt::get_terminal_size [] [src]

pub fn get_terminal_size() -> Result<(isize, isize)>

Returns the current size of the terminal in the form (width, height) in columns and rows, usage example:

use clt::get_terminal_size;

let (width, height) = get_terminal_size().unwrap();