clean up term width detection and remove spurious warnings
authorGraham Knop <haarg@haarg.org>
Fri, 14 Feb 2020 14:42:59 +0000 (15:42 +0100)
committerGraham Knop <haarg@haarg.org>
Fri, 19 Jun 2020 21:53:54 +0000 (23:53 +0200)
commit8ace712d58c78c04d404eb445de83547d9510f39
tree5180faa968e5235d6cf2f8c388584b079ec0ee8b
parent0ff7f36c99e3f0f307224b5ac558ffa716115559
clean up term width detection and remove spurious warnings

Checking the terminal width is done in a number of places, including in
tests.  Outputting warnings whenever one of those routines is used on
something that isn't a terminal adds noise to tests and isn't helpful.
Eliminate the warnings for when using COLUMNS or falling back to 80.
Maintain the warning for when Term::Size::Any is not available.

We could also just add Term::Size::Any as a prerequisite.
lib/Catalyst/Utils.pm