From: Rafael Garcia-Suarez Date: Mon, 6 Dec 2004 22:22:11 +0000 (+0000) Subject: Upgrade to Term::ANSIColor 1.09 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=92c7d2a28ff4d4e762344a2c1468bb639335e0c9;p=p5sagit%2Fp5-mst-13.2.git Upgrade to Term::ANSIColor 1.09 p4raw-id: //depot/perl@23620 --- diff --git a/lib/Term/ANSIColor.pm b/lib/Term/ANSIColor.pm index e46c9c5..c48d414 100644 --- a/lib/Term/ANSIColor.pm +++ b/lib/Term/ANSIColor.pm @@ -1,5 +1,5 @@ # Term::ANSIColor -- Color screen output using ANSI escape sequences. -# $Id: ANSIColor.pm,v 1.8 2004/02/20 06:21:26 eagle Exp $ +# $Id: ANSIColor.pm,v 1.9 2004/12/04 01:29:12 eagle Exp $ # # Copyright 1996, 1997, 1998, 2000, 2001, 2002 # by Russ Allbery and Zenin @@ -34,7 +34,7 @@ Exporter::export_ok_tags ('constants'); # Don't use the CVS revision as the version, since this module is also in Perl # core and too many things could munge CVS magic revision strings. -$VERSION = 1.08; +$VERSION = 1.09; ############################################################################## # Internal data structures @@ -424,12 +424,14 @@ me flesh it out: PuTTY yes color no yes no yes no Windows yes no no no no yes no Cygwin SSH yes yes no color color color yes - -Windows is Windows telnet, and Cygwin SSH is the OpenSSH implementation under -Cygwin on Windows NT. Where the entry is other than yes or no, that emulator -displays the given attribute as something else instead. Note that on an -aixterm, clear doesn't reset colors; you have to explicitly set the colors -back to what you want. More entries in this table are welcome. + Mac Terminal yes yes no yes yes yes yes + +Windows is Windows telnet, Cygwin SSH is the OpenSSH implementation under +Cygwin on Windows NT, and Mac Terminal is the Terminal application in Mac OS +X. Where the entry is other than yes or no, that emulator displays the +given attribute as something else instead. Note that on an aixterm, clear +doesn't reset colors; you have to explicitly set the colors back to what you +want. More entries in this table are welcome. Note that codes 3 (italic), 6 (rapid blink), and 9 (strikethrough) are specified in ANSI X3.64 and ECMA-048 but are not commonly supported by most diff --git a/lib/Term/ANSIColor/ChangeLog b/lib/Term/ANSIColor/ChangeLog index a5d95ff..c98596e 100644 --- a/lib/Term/ANSIColor/ChangeLog +++ b/lib/Term/ANSIColor/ChangeLog @@ -1,3 +1,14 @@ +2004-12-03 Russ Allbery + + * ANSIColor.pm: Version 1.09 released. + + * ANSIColor.pm: Add compatibility information for Mac OS X + Terminal from Daniel Lindsley. + +2004-02-20 Russ Allbery + + * test.pl: Always use eq, not ==, for string comparisons. + 2004-02-19 Russ Allbery * ANSIColor.pm: Version 1.08 released. diff --git a/lib/Term/ANSIColor/README b/lib/Term/ANSIColor/README index 8b9c2ad..016df9f 100644 --- a/lib/Term/ANSIColor/README +++ b/lib/Term/ANSIColor/README @@ -1,4 +1,4 @@ - Term::ANSIColor version 1.08 + Term::ANSIColor version 1.09 (A simple ANSI text attribute control module) Copyright 1996, 1997, 1998, 2000, 2001, 2002 @@ -90,4 +90,10 @@ THANKS To Richard Maus for pointing out DARK was missing from the exported constants list and CYAN and WHITE were missing from the documentation. + To Autrijus Tang for noticing a problem with string comparisons in the + test suite. + + To Daniel Lindsley for the information about what Mac OS X Terminal + supports. + To Larry Wall, as always, for Perl. diff --git a/lib/Term/ANSIColor/test.pl b/lib/Term/ANSIColor/test.pl index b9d4b18..123a353 100755 --- a/lib/Term/ANSIColor/test.pl +++ b/lib/Term/ANSIColor/test.pl @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $Id: test.pl,v 1.3 2004/02/20 06:21:26 eagle Exp $ +# $Id: test.pl,v 1.4 2004/02/20 21:50:10 eagle Exp $ # # test.pl -- Test suite for the Term::ANSIColor Perl module. # @@ -91,12 +91,12 @@ if (join ('|', @names) eq 'bold|on_green|clear') { # Test ANSI_COLORS_DISABLED. $ENV{ANSI_COLORS_DISABLED} = 1; -if (color ('blue') == '') { +if (color ('blue') eq '') { print "ok 10\n"; } else { print "not ok 10\n"; } -if (colored ('testing', 'blue', 'on_red') == 'testing') { +if (colored ('testing', 'blue', 'on_red') eq 'testing') { print "ok 11\n"; } else { print "not ok 11\n";