Function clt::get_terminal_size
source · Expand description
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();