diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-12-06 22:22:11 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-12-06 22:22:11 +0000 |
commit | 92c7d2a28ff4d4e762344a2c1468bb639335e0c9 (patch) | |
tree | 2d4030eb4e502056f0e9033c6b5e45cf9a313b30 /lib/Term | |
parent | 6a268663dbef8fda276c2b7ace6743802fd550ca (diff) | |
download | perl-92c7d2a28ff4d4e762344a2c1468bb639335e0c9.tar.gz |
Upgrade to Term::ANSIColor 1.09
p4raw-id: //depot/perl@23620
Diffstat (limited to 'lib/Term')
-rw-r--r-- | lib/Term/ANSIColor.pm | 18 | ||||
-rw-r--r-- | lib/Term/ANSIColor/ChangeLog | 11 | ||||
-rw-r--r-- | lib/Term/ANSIColor/README | 8 | ||||
-rwxr-xr-x | lib/Term/ANSIColor/test.pl | 6 |
4 files changed, 31 insertions, 12 deletions
diff --git a/lib/Term/ANSIColor.pm b/lib/Term/ANSIColor.pm index e46c9c56c7..c48d414ae7 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 <rra@stanford.edu> and Zenin <zenin@bawdycaste.com> @@ -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 a5d95ff53e..c98596ef28 100644 --- a/lib/Term/ANSIColor/ChangeLog +++ b/lib/Term/ANSIColor/ChangeLog @@ -1,3 +1,14 @@ +2004-12-03 Russ Allbery <rra@stanford.edu> + + * ANSIColor.pm: Version 1.09 released. + + * ANSIColor.pm: Add compatibility information for Mac OS X + Terminal from Daniel Lindsley. + +2004-02-20 Russ Allbery <rra@stanford.edu> + + * test.pl: Always use eq, not ==, for string comparisons. + 2004-02-19 Russ Allbery <rra@stanford.edu> * ANSIColor.pm: Version 1.08 released. diff --git a/lib/Term/ANSIColor/README b/lib/Term/ANSIColor/README index 8b9c2ad854..016df9f00b 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 b9d4b18029..123a353335 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"; |