Function term_size::dimensions [] [src]

pub fn dimensions() -> Option<(usize, usize)>

Query the current processes's output, returning its width and height as a number of characters. Returns None if the output isn't to a terminal.