Function terminal_width

Source
pub fn terminal_width() -> usize
Expand description

Get the terminal’s width, i.e. the number of columns it has.

§Returns:

  • The terminal width, or 80 if it cannot be determined.