Skip to main content

get_term_width

Function get_term_width 

Source
pub fn get_term_width() -> usize
Expand description

Detects the available terminal width for responsive layout.

Priority:

  1. COLUMNS environment variable.
  2. terminal_size system call.
  3. Default fallback of 80 characters.