Philip Pokorny a36bad1759
Fix column width calculation issue with certain terminal widths
If the reported terminal width is 0 or less than 42, the signed variable
width was set to a negative number that was then assigned to the
unsigned column width becoming a huge number.

Add comments and change logic to better explain what's happening.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Philip Pokorny <ppokorny@mindspring.com>
Closes #10247
2020-05-06 17:17:38 -07:00
..
2019-08-30 09:43:30 -07:00
2019-10-02 10:39:48 -07:00
2020-01-23 11:01:24 -08:00
2019-08-30 09:43:30 -07:00
2020-04-30 17:48:58 -07:00
2019-11-01 10:31:42 -07:00
2019-10-02 10:39:48 -07:00
2020-04-14 11:36:28 -07:00