1 2009-08-30 Russ Allbery <rra@stanford.edu>
3 * ANSIColor.pm: Version 2.02 released.
5 * ANSIColor.pm: Update compatibility matrix to reflect that xterm
8 * ANSIColor.pm (colorvalid): New function to check whether an
10 * t/basic.t: Test colorvalid.
12 2009-07-04 Russ Allbery <rra@stanford.edu>
14 * ANSIColor.pm: Add an example of checking color attributes by
15 catching exceptions from color() to the documentation.
17 * ANSIColor.pm: Add FAINT as a synonym for DARK and export it when
18 constants are requested.
19 * t/basic.t: Test faint and FAINT as a synonym for dark/DARK.
21 * ANSIColor.pm: Version 2.01 released.
23 * t/basic.t: Test error handling in color, colored, and uncolor.
25 * ANSIColor.pm (uncolor): When reporting errors for bad escape
26 sequences, don't include the leading \e[ or trailing m in the
29 * ANSIColor.pm: Add section headings to the DESCRIPTION section of
30 the module since it's getting rather long.
31 (colorstrip): New function to remove ANSI color codes from
32 strings. Thanks, Paul Miller.
33 * t/basic.t: New tests for colorstrip.
35 * ANSIColor.pm (AUTOLOAD): Untaint $AUTOLOAD, required by Perl
36 5.10 when running in taint mode. Thanks, Tim Bellinghausen.
37 * t/basic.t: Two new tests for AUTOLOAD error handling. Enable
38 warnings and taint mode.
40 2009-02-28 Russ Allbery <rra@stanford.edu>
42 * ANSIColor.pm: Version 2.00 released.
44 * Makefile.PL: Add LICENSE to the distribution metadata for Perl
47 * ANSIColor.pm: Add explicit return statements instead of relying
48 on the implicit return of the last expression. Use all caps for
51 * ANSIColor.pm: Add the new functions to a :pushpop export tag.
52 (PUSHCOLOR): New function that stores in an internal stack the
53 attributes that are being set.
54 (POPCOLOR): New function that pops the attributes being set and
55 sets the attributes previously found on the stack.
56 (LOCALCOLOR): New function that surrounds its argument in
57 PUSHCOLOR and POPCOLOR.
58 (AUTOLOAD): If $AUTOLOCAL is set, surround all color constants
59 with an implicit LOCALCOLOR.
60 * t/basic.t: Test PUSHCOLOR, POPCOLOR, and LOCALCOLOR.
62 * t/pod-spelling.t: Rewrite to use Test::More. Support and prefer
65 * ANSIColor.pm: Fix additional spelling errors and rewrap the POD
66 documentation to a 74-character margin.
68 * t/basic.t: Rewrite to use Test::More.
71 * ANSIColor.pm (AUTOLOAD): If ANSI_COLORS_DISABLED is set, return
72 the stringified arguments rather than creating a sub. This allows
73 colors to work later if ANSI_COLORS_DISABLED is unset rather than
74 making its effects permanent. It also avoids adding a reset
75 escape sequence when $AUTORESET and ANSI_COLORS_DISABLED are both
78 2008-09-14 Russ Allbery <rra@stanford.edu>
80 * ANSIColor.pm: Add faint as a synonym for dark and improve the
81 documentation of text attributes.
83 * t/pod-spelling.t: New check to spell-check POD documentation
84 using ispell with Pod::Spell.
85 * ANSIColor.pm: Fix spelling and markup errors in documentation
86 and add stop-words where appropriate.
88 2007-04-22 Russ Allbery <rra@stanford.edu>
90 * ANSIColor.pm: Version 1.12 released.
92 2007-03-23 Russ Allbery <rra@stanford.edu>
94 * ANSIColor.pm: Use the right syntax for internal POD links.
95 Thanks, Rafael Garcia-Suarez.
97 2007-02-10 Russ Allbery <rra@stanford.edu>
99 * ANSIColor.pm: Add cyan and white to the list of supported
100 attributes. Not sure how I managed to omit them before.
102 2006-07-12 Russ Allbery <rra@stanford.edu>
104 * ANSIColor.pm: Version 1.11 released.
106 2006-06-22 Russ Allbery <rra@stanford.edu>
108 * ANSIColor.pm: Clarify in the documentation the behavior of
109 terminals when background colors are set across newlines, and
110 rewrite some of the examples to avoid doing things that confuse
111 the terminal. Fix a couple of spelling errors.
113 * test.pl: Moved to...
114 * t/basic.t: ...here.
115 * t/pod.t: New test for POD validity.
117 2005-08-21 Russ Allbery <rra@stanford.edu>
119 * ANSIColor.pm: Version 1.10 released.
121 * ANSIColor.pm (colored): Fix the $EACHLINE support to work
122 properly with a line consisting solely of "0". Remove Zenin's
123 now-defunct e-mail address from the documentation.
124 * test.pl: Test 0 and the empty string in combination with
127 * tests/ansicolor: Add terminal test file from Joe Smith.
128 * tests/vt100-torture: Likewise.
129 * tests/README: Add an explanation of the test files.
131 2004-12-03 Russ Allbery <rra@stanford.edu>
133 * ANSIColor.pm: Version 1.09 released.
135 * ANSIColor.pm: Add compatibility information for Mac OS X
136 Terminal from Daniel Lindsley.
138 2004-02-20 Russ Allbery <rra@stanford.edu>
140 * test.pl: Always use eq, not ==, for string comparisons.
142 2004-02-19 Russ Allbery <rra@stanford.edu>
144 * ANSIColor.pm: Version 1.08 released.
146 * ANSIColor.pm: Add DARK to %EXPORT_TAGS and add CYAN and WHITE to
147 the list of documented constants.
148 * test.pl: Add a test for DARK. Redo the leading comment.
150 2003-03-25 Russ Allbery <rra@stanford.edu>
152 * ANSIColor.pm: Version 1.07 released.
154 * ANSIColor.pm: Add PuTTY, Windows telnet, and Cygwin OpenSSH
155 information to the terminal emulators table, and update the URL to
158 2002-12-09 Russ Allbery <rra@stanford.edu>
160 * ANSIColor.pm: Version 1.06 released to synchronize the version
161 on CPAN with the version in Perl core.
163 * ANSIColor.pm: Fix typo in L<> link in documentation.
165 2002-06-28 Russ Allbery <rra@stanford.edu>
167 * ANSIColor.pm: Version 1.05 released.
169 * ANSIColor.pm: Update the formatting style, add a pointer to the
170 module web site, use L<> for URLs, and use naked <>s where
171 permissible rather than E<lt> and E<gt>. Renamed LICENSE to
172 COPYRIGHT AND LICENSE.
174 2002-02-14 Russ Allbery <rra@stanford.edu>
176 * ANSIColor.pm: Added a mention of the specific Windows consoles
177 that don't work with this module.
179 2001-07-10 Russ Allbery <rra@stanford.edu>
181 * ANSIColor.pm: Version 1.04 released.
183 * ANSIColor.pm: Add documentation, examples, and diagnostics for
184 uncolor. Document ANSI_COLORS_DISABLED. Add information about
185 the relevant standards for these escape sequences and the
186 additional ones that aren't supported by this module. Add a
187 pointer to the relevant standards. Add a LICENSE section. Update
188 Zenin's e-mail address.
190 * ANSIColor.pm (AUTOLOAD): Add support for ANSI_COLORS_DISABLED.
193 * test.pl: Add tests for ANSI_COLORS_DISABLED.
195 * ANSIColor.pm (uncolor): New function.
196 * test.pl: Add a test for it.
198 2000-08-06 Russ Allbery <rra@stanford.edu>
200 * ANSIColor.pm: Version 1.03 released.
202 * Makefile.PL: Install in the Perl library directory for Perl
205 * test.pl: Added a new test for the array reference syntax for
208 * ANSIColor.pm: Changed $VERSION to a static string. Added dark
209 to the attributes. Updated the documentation to include a table
210 of supported attributes on different terminal emulators, to add
211 dark, to document the new optional way to call colored, and to
212 mark the diagnostics as fatal errors or warnings.
213 (colored): Allow the attributes to be passed as an initial array
214 reference as well as a final list, and for that calling syntax
215 take the rest of the arguments as text to be colored.
217 1998-11-27 Russ Allbery <rra@stanford.edu>
219 * ANSIColor.pm: Version 1.02 released.
221 * Makefile.PL: Added a 5.005-only section giving ABSTRACT and
222 AUTHOR settings for generating a PPD to go with a binary
223 distribution or the Perl Resource Kits.
225 1998-04-14 Russ Allbery <rra@stanford.edu>
227 * ANSIColor.pm: croak() instead of die() on AUTOLOAD failure to
228 get the right error text, fixed a bunch of typos in the
229 documentation, added a quote.
231 1997-12-10 Russ Allbery <rra@stanford.edu>
233 * ANSIColor.pm: Version 1.01 released.
235 * ANSIColor.pm (color): Carp::croak() isn't predeclared, so it
236 needs parens around its argument. This bug will only show up in
237 versions of Perl >5.004_04 since up until then strict.pm imports
238 Carp which predeclares the function.
240 1997-11-29 Russ Allbery <rra@stanford.edu>
242 * ANSIColor.pm: Version 1.00 released.
244 * Makefile.PL: Now gets version information from the module, has
245 the correct rules to build a distribution.
247 * test.pl: Comments trimmed, minor test modifications.
249 * ANSIColor.pm: Changed my e-mail address, fixed to deal correctly
250 with trailing delimiters when EACHLINE is being used, die()
251 changed to croak() if the caller uses an invalid attribute name,
252 getting $VERSION from RCS updated to my current method, source
255 * test.pl: Added test for EACHLINE with trailing delimiters.
257 1997-02-17 Russ Allbery <rra@stanford.edu>
259 * ANSIColor.pm: Version 0.9 released.
261 * ANSIColor.pm: Changed the runtime error message to start with an
262 uppercase letter, reworked the documentation considerably
263 including adding more comparison between the two interfaces,
264 fixing some formatting bugs, fixing a typo, adding more
265 diagnostics, and generally being more verbose.
267 1997-01-08 Russ Allbery <rra@stanford.edu>
269 * ANSIColor.pm: Version 0.8 released.
271 * test.pl: Fixed the test numbering in the BEGIN block.
273 * test.pl: Reformatted and commented to fit my programming style.
275 * ANSIColor.pm: Changed the method by which $VERSION is set so
276 that it will always have two digits after the decimal point.
280 * ANSIColor.pm: [Revision 0.7] Changed the codes so that reset is
281 always consistantly "\e[0m".
283 * ANSIColor.pm: [Revision 0.6] Added $EACHLINE and support to
284 colored() for it so that attributes can be reset around every
285 newline (or other line delimiter -- we're flexible). Documented
288 * ANSIColor.pm: [Revision 0.5] Changed implementation of the
289 constants to autoloaded subs, added the $AUTORESET variable for
290 use with the constants, and documented this.
292 1996-12-07 Russ Allbery <rra@stanford.edu>
294 * ANSIColor.pm: [Revision 0.4] Added POD documentation.
296 * ANSIColor.pm: [Revision 0.3] Added constant forms, modified to
297 allow a space-separated string of attributes to be passed to
298 color() and colored(), added Zenin to the credits.
300 1996-12-04 Russ Allbery <rra@stanford.edu>
302 * ANSIColor.pm: [Revision 0.2] Changed return syntax and check for
303 the null attribute string.
305 * ANSIColor.pm: New file.