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