terminal_height

Function terminal_height 

Source
pub fn terminal_height() -> usize
Expand description

Get the terminal’s height, i.e. the number of rows it has.

§Returns:

  • The terminal height, or 24 if it cannot be determined.