Term::ANSIColor v6.0.0 TRIAL release available

Russ Allbery <[email protected]> Sat, 01 Aug 2026 11:04:30 -0700
Newsgroups gmane.comp.lang.perl.modules.authors,gmane.comp.lang.perl.perl5.porters
Organization The Eyrie
Message-ID <[email protected]>
I have just uploaded a v6.0.0-TRIAL release of Term::ANSIColor to CPAN for
early testing. I am hoping this will avoid the surprise that happened when
I uploaded podlators v6.0.0 a couple of years ago with similar changes.

This is advance warning that I will be dropping Perl 5.8 and 5.10 support
from the Term::ANSIColor distribution on CPAN in the next release. I am
following the Lyon Amendment for version support policy and only promising
ongoing support for Perl versions within the support range spelled out
there, although I am being even more conservative in bumping the minimum
version for now.

If you are a module author who wants to continue to support those old
versions of Perl, please be aware that some Perl package managers will try
to resolve dependencies from CPAN instead of from Perl core and always
install the latest version. On Perl 5.8 and 5.10, this could potentially
then fail once the new Term::ANSIColor is released due to its minimum Perl
version. Alternatives are to use a different module management mechanism
that understands supported Perl versions, or to install an older release.

My current plan is to make an official v6.0.0 release in a month or two.

Changes in this upcoming release:

 - Drop support for Perl 5.8 and 5.10. Term::ANSIColor now requires Perl
   5.12 or later.

 - Term::ANSIColor now uses semantic versioning for the package and module
   versions, with a v prefix to work with Perl's packaging system.

 - uncolor called on \e[m or the empty string now returns "clear" rather
   than nothing, since that escape sequence is a valid way to clear all
   attributes. Thanks, johnsonea. (GitHub #9)

 - Fix handling of the NO_COLOR environment variable so that it has no
   effect when set to the empty string, as required by the specification.
   Thanks, Ricardo Signes.

 - Return the string with no changes if no attributes are passed to the
   colored function instead of raising a warning. Thanks, val.

 - Update the NOTES discussion of supported ECMA-048 attributes to correct
   multiple inaccuracies and avoid making claims about which attributes
   are commonly supported. Thanks to G. Branden Robinson for pointing out
   that xterm now supports italic.

 - Update the URL for information about truecolor support.

-- 
#!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker
$^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD,
 00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{
rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print