Only apply FORCE_COLOR, NO_COLOR and ANSI_COLORS_DISABLED when present and not an empty string#92
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #92 +/- ##
==========================================
+ Coverage 97.77% 97.82% +0.04%
==========================================
Files 3 3
Lines 135 138 +3
==========================================
+ Hits 132 135 +3
Misses 3 3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
It looks like
https://metacpan.org/pod/Term::ANSIColor#ANSI_COLORS_DISABLED
Perl 5.8.0 was released in 2002: https://dev.perl.org/perl5/news/2002/07/18/580ann/ So perhaps we should change |
Changed. |
FORCE_COLOR and NO_COLOR when present and not an empty stringFORCE_COLOR, NO_COLOR and ANSI_COLORS_DISABLED when present and not an empty string
Similar to the CPython fix: python/cpython#129061 / python/cpython#129140
The
NO_COLORspec was changed in 2022:jcs/no_color@99f90e2
It added "and not an empty string" and now reads:
https://no-color.org/
FORCE_COLOR has similar wording:
https://force-color.org/