Commit e41291b
helper: try $COLUMNS if getTerminalWidth() fails, before using 80
this lets the user give the terminal width instead of always defaulting
to 80 just because no terminal is detected, and should work with
terminals because termios are used first as before and 80 are fallback
if $COLUMNS no set.
Signed-off-by: Scott Mcdermott <scott@smemsh.net>1 parent f41b520 commit e41291b
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
531 | 540 | | |
532 | 541 | | |
533 | 542 | | |
| |||
0 commit comments