9888ad1afbcff453b14df72402b02363022d6070
[p5sagit/p5-mst-13.2.git] / ext / Term-ANSIColor / ChangeLog
1 2009-08-30  Russ Allbery  <rra@stanford.edu>
2
3         * ANSIColor.pm: Version 2.02 released.
4
5         * ANSIColor.pm: Update compatibility matrix to reflect that xterm
6         now supports blink.
7
8         * ANSIColor.pm (colorvalid): New function to check whether an
9         attribute is known.
10         * t/basic.t: Test colorvalid.
11
12 2009-07-04  Russ Allbery  <rra@stanford.edu>
13
14         * ANSIColor.pm: Add an example of checking color attributes by
15         catching exceptions from color() to the documentation.
16
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.
20
21         * ANSIColor.pm: Version 2.01 released.
22
23         * t/basic.t: Test error handling in color, colored, and uncolor.
24
25         * ANSIColor.pm (uncolor): When reporting errors for bad escape
26         sequences, don't include the leading \e[ or trailing m in the
27         error message.
28
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.
34
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.
39
40 2009-02-28  Russ Allbery  <rra@stanford.edu>
41
42         * ANSIColor.pm: Version 2.00 released.
43
44         * Makefile.PL: Add LICENSE to the distribution metadata for Perl
45         5.10 and later.
46
47         * ANSIColor.pm: Add explicit return statements instead of relying
48         on the implicit return of the last expression.  Use all caps for
49         all global variables.
50
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.
61
62         * t/pod-spelling.t: Rewrite to use Test::More.  Support and prefer
63         aspell.
64
65         * ANSIColor.pm: Fix additional spelling errors and rewrap the POD
66         documentation to a 74-character margin.
67
68         * t/basic.t: Rewrite to use Test::More.
69         * t/pod.t: Likewise.
70
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
76         set.
77
78 2008-09-14  Russ Allbery  <rra@stanford.edu>
79
80         * ANSIColor.pm: Add faint as a synonym for dark and improve the
81         documentation of text attributes.
82
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.
87
88 2007-04-22  Russ Allbery  <rra@stanford.edu>
89
90         * ANSIColor.pm: Version 1.12 released.
91
92 2007-03-23  Russ Allbery  <rra@stanford.edu>
93
94         * ANSIColor.pm: Use the right syntax for internal POD links.
95         Thanks, Rafael Garcia-Suarez.
96
97 2007-02-10  Russ Allbery  <rra@stanford.edu>
98
99         * ANSIColor.pm: Add cyan and white to the list of supported
100         attributes.  Not sure how I managed to omit them before.
101
102 2006-07-12  Russ Allbery  <rra@stanford.edu>
103
104         * ANSIColor.pm: Version 1.11 released.
105
106 2006-06-22  Russ Allbery  <rra@stanford.edu>
107
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.
112
113         * test.pl: Moved to...
114         * t/basic.t: ...here.
115         * t/pod.t: New test for POD validity.
116
117 2005-08-21  Russ Allbery  <rra@stanford.edu>
118
119         * ANSIColor.pm: Version 1.10 released.
120
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
125         $EACHLINE.
126
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.
130
131 2004-12-03  Russ Allbery  <rra@stanford.edu>
132
133         * ANSIColor.pm: Version 1.09 released.
134
135         * ANSIColor.pm: Add compatibility information for Mac OS X
136         Terminal from Daniel Lindsley.
137
138 2004-02-20  Russ Allbery  <rra@stanford.edu>
139
140         * test.pl: Always use eq, not ==, for string comparisons.
141
142 2004-02-19  Russ Allbery  <rra@stanford.edu>
143
144         * ANSIColor.pm: Version 1.08 released.
145
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.
149
150 2003-03-25  Russ Allbery  <rra@stanford.edu>
151
152         * ANSIColor.pm: Version 1.07 released.
153
154         * ANSIColor.pm: Add PuTTY, Windows telnet, and Cygwin OpenSSH
155         information to the terminal emulators table, and update the URL to
156         the ECMA standard.
157
158 2002-12-09  Russ Allbery  <rra@stanford.edu>
159
160         * ANSIColor.pm: Version 1.06 released to synchronize the version
161         on CPAN with the version in Perl core.
162
163         * ANSIColor.pm: Fix typo in L<> link in documentation.
164
165 2002-06-28  Russ Allbery  <rra@stanford.edu>
166
167         * ANSIColor.pm: Version 1.05 released.
168
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.
173
174 2002-02-14  Russ Allbery  <rra@stanford.edu>
175
176         * ANSIColor.pm: Added a mention of the specific Windows consoles
177         that don't work with this module.
178
179 2001-07-10  Russ Allbery  <rra@stanford.edu>
180
181         * ANSIColor.pm: Version 1.04 released.
182
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.
189
190         * ANSIColor.pm (AUTOLOAD): Add support for ANSI_COLORS_DISABLED.
191         (color): Likewise.
192         (colored): Likewise.
193         * test.pl: Add tests for ANSI_COLORS_DISABLED.
194
195         * ANSIColor.pm (uncolor): New function.
196         * test.pl: Add a test for it.
197
198 2000-08-06  Russ Allbery  <rra@stanford.edu>
199
200         * ANSIColor.pm: Version 1.03 released.
201
202         * Makefile.PL: Install in the Perl library directory for Perl
203         versions >= 5.6.0.
204
205         * test.pl: Added a new test for the array reference syntax for
206         colored.
207
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.
216
217 1998-11-27  Russ Allbery  <rra@stanford.edu>
218
219         * ANSIColor.pm: Version 1.02 released.
220
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.
224
225 1998-04-14  Russ Allbery  <rra@stanford.edu>
226
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.
230
231 1997-12-10  Russ Allbery  <rra@stanford.edu>
232
233         * ANSIColor.pm: Version 1.01 released.
234
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.
239
240 1997-11-29  Russ Allbery  <rra@stanford.edu>
241
242         * ANSIColor.pm: Version 1.00 released.
243
244         * Makefile.PL: Now gets version information from the module, has
245         the correct rules to build a distribution.
246
247         * test.pl: Comments trimmed, minor test modifications.
248
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
253         detabified.
254
255         * test.pl: Added test for EACHLINE with trailing delimiters.
256
257 1997-02-17  Russ Allbery  <rra@stanford.edu>
258
259         * ANSIColor.pm: Version 0.9 released.
260
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.
266
267 1997-01-08  Russ Allbery  <rra@stanford.edu>
268
269         * ANSIColor.pm: Version 0.8 released.
270
271         * test.pl: Fixed the test numbering in the BEGIN block.
272
273         * test.pl: Reformatted and commented to fit my programming style.
274
275         * ANSIColor.pm: Changed the method by which $VERSION is set so
276         that it will always have two digits after the decimal point.
277
278         * test.pl: New file.
279
280         * ANSIColor.pm: [Revision 0.7] Changed the codes so that reset is
281         always consistantly "\e[0m".
282
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
286         this as well.
287
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.
291
292 1996-12-07  Russ Allbery  <rra@stanford.edu>
293
294         * ANSIColor.pm: [Revision 0.4] Added POD documentation.
295
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.
299
300 1996-12-04  Russ Allbery  <rra@stanford.edu>
301
302         * ANSIColor.pm: [Revision 0.2] Changed return syntax and check for
303         the null attribute string.
304
305         * ANSIColor.pm: New file.