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/ttyif possible, then falls back to the former.