1 2009-07-04 Russ Allbery <rra@stanford.edu>
3 * ANSIColor.pm: Version 2.01 released.
5 * t/basic.t: Test error handling in color, colored, and uncolor.
7 * ANSIColor.pm (uncolor): When reporting errors for bad escape
8 sequences, don't include the leading \e[ or trailing m in the
11 * ANSIColor.pm: Add section headings to the DESCRIPTION section of
12 the module since it's getting rather long.
13 (colorstrip): New function to remove ANSI color codes from
14 strings. Thanks, Paul Miller.
15 * t/basic.t: New tests for colorstrip.
17 * ANSIColor.pm (AUTOLOAD): Untaint $AUTOLOAD, required by Perl
18 5.10 when running in taint mode. Thanks, Tim Bellinghausen.
19 * t/basic.t: Two new tests for AUTOLOAD error handling. Enable
20 warnings and taint mode.
22 2009-02-28 Russ Allbery <rra@stanford.edu>
24 * ANSIColor.pm: Version 2.00 released.
26 * Makefile.PL: Add LICENSE to the distribution metadata for Perl
29 * ANSIColor.pm: Add explicit return statements instead of relying
30 on the implicit return of the last expression. Use all caps for
33 * ANSIColor.pm: Add the new functions to a :pushpop export tag.
34 (PUSHCOLOR): New function that stores in an internal stack the
35 attributes that are being set.
36 (POPCOLOR): New function that pops the attributes being set and
37 sets the attributes previously found on the stack.
38 (LOCALCOLOR): New function that surrounds its argument in
39 PUSHCOLOR and POPCOLOR.
40 (AUTOLOAD): If $AUTOLOCAL is set, surround all color constants
41 with an implicit LOCALCOLOR.
42 * t/basic.t: Test PUSHCOLOR, POPCOLOR, and LOCALCOLOR.
44 * t/pod-spelling.t: Rewrite to use Test::More. Support and prefer
47 * ANSIColor.pm: Fix additional spelling errors and rewrap the POD
48 documentation to a 74-character margin.
50 * t/basic.t: Rewrite to use Test::More.
53 * ANSIColor.pm (AUTOLOAD): If ANSI_COLORS_DISABLED is set, return
54 the stringified arguments rather than creating a sub. This allows
55 colors to work later if ANSI_COLORS_DISABLED is unset rather than
56 making its effects permanent. It also avoids adding a reset
57 escape sequence when $AUTORESET and ANSI_COLORS_DISABLED are both
60 2008-09-14 Russ Allbery <rra@stanford.edu>
62 * ANSIColor.pm: Add faint as a synonym for dark and improve the
63 documentation of text attributes.
65 * t/pod-spelling.t: New check to spell-check POD documentation
66 using ispell with Pod::Spell.
67 * ANSIColor.pm: Fix spelling and markup errors in documentation
68 and add stop-words where appropriate.
70 2007-04-22 Russ Allbery <rra@stanford.edu>
72 * ANSIColor.pm: Version 1.12 released.
74 2007-03-23 Russ Allbery <rra@stanford.edu>
76 * ANSIColor.pm: Use the right syntax for internal POD links.
77 Thanks, Rafael Garcia-Suarez.
79 2007-02-10 Russ Allbery <rra@stanford.edu>
81 * ANSIColor.pm: Add cyan and white to the list of supported
82 attributes. Not sure how I managed to omit them before.
84 2006-07-12 Russ Allbery <rra@stanford.edu>
86 * ANSIColor.pm: Version 1.11 released.
88 2006-06-22 Russ Allbery <rra@stanford.edu>
90 * ANSIColor.pm: Clarify in the documentation the behavior of
91 terminals when background colors are set across newlines, and
92 rewrite some of the examples to avoid doing things that confuse
93 the terminal. Fix a couple of spelling errors.
95 * test.pl: Moved to...
97 * t/pod.t: New test for POD validity.
99 2005-08-21 Russ Allbery <rra@stanford.edu>
101 * ANSIColor.pm: Version 1.10 released.
103 * ANSIColor.pm (colored): Fix the $EACHLINE support to work
104 properly with a line consisting solely of "0". Remove Zenin's
105 now-defunct e-mail address from the documentation.
106 * test.pl: Test 0 and the empty string in combination with
109 * tests/ansicolor: Add terminal test file from Joe Smith.
110 * tests/vt100-torture: Likewise.
111 * tests/README: Add an explanation of the test files.
113 2004-12-03 Russ Allbery <rra@stanford.edu>
115 * ANSIColor.pm: Version 1.09 released.
117 * ANSIColor.pm: Add compatibility information for Mac OS X
118 Terminal from Daniel Lindsley.
120 2004-02-20 Russ Allbery <rra@stanford.edu>
122 * test.pl: Always use eq, not ==, for string comparisons.
124 2004-02-19 Russ Allbery <rra@stanford.edu>
126 * ANSIColor.pm: Version 1.08 released.
128 * ANSIColor.pm: Add DARK to %EXPORT_TAGS and add CYAN and WHITE to
129 the list of documented constants.
130 * test.pl: Add a test for DARK. Redo the leading comment.
132 2003-03-25 Russ Allbery <rra@stanford.edu>
134 * ANSIColor.pm: Version 1.07 released.
136 * ANSIColor.pm: Add PuTTY, Windows telnet, and Cygwin OpenSSH
137 information to the terminal emulators table, and update the URL to
140 2002-12-09 Russ Allbery <rra@stanford.edu>
142 * ANSIColor.pm: Version 1.06 released to synchronize the version
143 on CPAN with the version in Perl core.
145 * ANSIColor.pm: Fix typo in L<> link in documentation.
147 2002-06-28 Russ Allbery <rra@stanford.edu>
149 * ANSIColor.pm: Version 1.05 released.
151 * ANSIColor.pm: Update the formatting style, add a pointer to the
152 module web site, use L<> for URLs, and use naked <>s where
153 permissible rather than E<lt> and E<gt>. Renamed LICENSE to
154 COPYRIGHT AND LICENSE.
156 2002-02-14 Russ Allbery <rra@stanford.edu>
158 * ANSIColor.pm: Added a mention of the specific Windows consoles
159 that don't work with this module.
161 2001-07-10 Russ Allbery <rra@stanford.edu>
163 * ANSIColor.pm: Version 1.04 released.
165 * ANSIColor.pm: Add documentation, examples, and diagnostics for
166 uncolor. Document ANSI_COLORS_DISABLED. Add information about
167 the relevant standards for these escape sequences and the
168 additional ones that aren't supported by this module. Add a
169 pointer to the relevant standards. Add a LICENSE section. Update
170 Zenin's e-mail address.
172 * ANSIColor.pm (AUTOLOAD): Add support for ANSI_COLORS_DISABLED.
175 * test.pl: Add tests for ANSI_COLORS_DISABLED.
177 * ANSIColor.pm (uncolor): New function.
178 * test.pl: Add a test for it.
180 2000-08-06 Russ Allbery <rra@stanford.edu>
182 * ANSIColor.pm: Version 1.03 released.
184 * Makefile.PL: Install in the Perl library directory for Perl
187 * test.pl: Added a new test for the array reference syntax for
190 * ANSIColor.pm: Changed $VERSION to a static string. Added dark
191 to the attributes. Updated the documentation to include a table
192 of supported attributes on different terminal emulators, to add
193 dark, to document the new optional way to call colored, and to
194 mark the diagnostics as fatal errors or warnings.
195 (colored): Allow the attributes to be passed as an initial array
196 reference as well as a final list, and for that calling syntax
197 take the rest of the arguments as text to be colored.
199 1998-11-27 Russ Allbery <rra@stanford.edu>
201 * ANSIColor.pm: Version 1.02 released.
203 * Makefile.PL: Added a 5.005-only section giving ABSTRACT and
204 AUTHOR settings for generating a PPD to go with a binary
205 distribution or the Perl Resource Kits.
207 1998-04-14 Russ Allbery <rra@stanford.edu>
209 * ANSIColor.pm: croak() instead of die() on AUTOLOAD failure to
210 get the right error text, fixed a bunch of typos in the
211 documentation, added a quote.
213 1997-12-10 Russ Allbery <rra@stanford.edu>
215 * ANSIColor.pm: Version 1.01 released.
217 * ANSIColor.pm (color): Carp::croak() isn't predeclared, so it
218 needs parens around its argument. This bug will only show up in
219 versions of Perl >5.004_04 since up until then strict.pm imports
220 Carp which predeclares the function.
222 1997-11-29 Russ Allbery <rra@stanford.edu>
224 * ANSIColor.pm: Version 1.00 released.
226 * Makefile.PL: Now gets version information from the module, has
227 the correct rules to build a distribution.
229 * test.pl: Comments trimmed, minor test modifications.
231 * ANSIColor.pm: Changed my e-mail address, fixed to deal correctly
232 with trailing delimiters when EACHLINE is being used, die()
233 changed to croak() if the caller uses an invalid attribute name,
234 getting $VERSION from RCS updated to my current method, source
237 * test.pl: Added test for EACHLINE with trailing delimiters.
239 1997-02-17 Russ Allbery <rra@stanford.edu>
241 * ANSIColor.pm: Version 0.9 released.
243 * ANSIColor.pm: Changed the runtime error message to start with an
244 uppercase letter, reworked the documentation considerably
245 including adding more comparison between the two interfaces,
246 fixing some formatting bugs, fixing a typo, adding more
247 diagnostics, and generally being more verbose.
249 1997-01-08 Russ Allbery <rra@stanford.edu>
251 * ANSIColor.pm: Version 0.8 released.
253 * test.pl: Fixed the test numbering in the BEGIN block.
255 * test.pl: Reformatted and commented to fit my programming style.
257 * ANSIColor.pm: Changed the method by which $VERSION is set so
258 that it will always have two digits after the decimal point.
262 * ANSIColor.pm: [Revision 0.7] Changed the codes so that reset is
263 always consistantly "\e[0m".
265 * ANSIColor.pm: [Revision 0.6] Added $EACHLINE and support to
266 colored() for it so that attributes can be reset around every
267 newline (or other line delimiter -- we're flexible). Documented
270 * ANSIColor.pm: [Revision 0.5] Changed implementation of the
271 constants to autoloaded subs, added the $AUTORESET variable for
272 use with the constants, and documented this.
274 1996-12-07 Russ Allbery <rra@stanford.edu>
276 * ANSIColor.pm: [Revision 0.4] Added POD documentation.
278 * ANSIColor.pm: [Revision 0.3] Added constant forms, modified to
279 allow a space-separated string of attributes to be passed to
280 color() and colored(), added Zenin to the credits.
282 1996-12-04 Russ Allbery <rra@stanford.edu>
284 * ANSIColor.pm: [Revision 0.2] Changed return syntax and check for
285 the null attribute string.
287 * ANSIColor.pm: New file.