crossterm::terminal

Function size

Source
pub fn size() -> Result<(u16, u16)>
Expand description

Returns the terminal size (columns, rows).

The top left cell is represented (1, 1).