Module get_terminal_width

Source
Expand description

Hack to get terminal width to allow making older Clap versions auto-adapt to the current width.

Functionsยง

get_terminal_width
Always return a width, fall back to a default value of 120.
terminal_size_using_tty
Unlike terminal_size::terminal_size() which uses stdout, this opens /dev/tty if possible, then falls back to the former.