# 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>
# 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
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
+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.
- Term::ANSIColor version 1.08
+ Term::ANSIColor version 1.09
(A simple ANSI text attribute control module)
Copyright 1996, 1997, 1998, 2000, 2001, 2002
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.
#!/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.
#
# 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";