Commit | Line | Data |
b5b25974 |
1 | 2009-07-04 Russ Allbery <rra@stanford.edu> |
2 | |
3 | * ANSIColor.pm: Version 2.01 released. |
4 | |
5 | * t/basic.t: Test error handling in color, colored, and uncolor. |
6 | |
7 | * ANSIColor.pm (uncolor): When reporting errors for bad escape |
8 | sequences, don't include the leading \e[ or trailing m in the |
9 | error message. |
10 | |
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. |
16 | |
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. |
21 | |
c23d8173 |
22 | 2009-02-28 Russ Allbery <rra@stanford.edu> |
23 | |
24 | * ANSIColor.pm: Version 2.00 released. |
25 | |
26 | * Makefile.PL: Add LICENSE to the distribution metadata for Perl |
27 | 5.10 and later. |
28 | |
29 | * ANSIColor.pm: Add explicit return statements instead of relying |
30 | on the implicit return of the last expression. Use all caps for |
31 | all global variables. |
32 | |
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. |
43 | |
44 | * t/pod-spelling.t: Rewrite to use Test::More. Support and prefer |
45 | aspell. |
46 | |
47 | * ANSIColor.pm: Fix additional spelling errors and rewrap the POD |
48 | documentation to a 74-character margin. |
49 | |
50 | * t/basic.t: Rewrite to use Test::More. |
51 | * t/pod.t: Likewise. |
52 | |
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 |
58 | set. |
59 | |
60 | 2008-09-14 Russ Allbery <rra@stanford.edu> |
61 | |
62 | * ANSIColor.pm: Add faint as a synonym for dark and improve the |
63 | documentation of text attributes. |
64 | |
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. |
69 | |
7cd34c57 |
70 | 2007-04-22 Russ Allbery <rra@stanford.edu> |
71 | |
72 | * ANSIColor.pm: Version 1.12 released. |
73 | |
74 | 2007-03-23 Russ Allbery <rra@stanford.edu> |
75 | |
76 | * ANSIColor.pm: Use the right syntax for internal POD links. |
77 | Thanks, Rafael Garcia-Suarez. |
78 | |
79 | 2007-02-10 Russ Allbery <rra@stanford.edu> |
80 | |
81 | * ANSIColor.pm: Add cyan and white to the list of supported |
82 | attributes. Not sure how I managed to omit them before. |
83 | |
cd07961b |
84 | 2006-07-12 Russ Allbery <rra@stanford.edu> |
85 | |
86 | * ANSIColor.pm: Version 1.11 released. |
87 | |
88 | 2006-06-22 Russ Allbery <rra@stanford.edu> |
89 | |
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. |
94 | |
95 | * test.pl: Moved to... |
96 | * t/basic.t: ...here. |
97 | * t/pod.t: New test for POD validity. |
98 | |
51da1d85 |
99 | 2005-08-21 Russ Allbery <rra@stanford.edu> |
100 | |
101 | * ANSIColor.pm: Version 1.10 released. |
102 | |
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 |
107 | $EACHLINE. |
108 | |
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. |
112 | |
92c7d2a2 |
113 | 2004-12-03 Russ Allbery <rra@stanford.edu> |
114 | |
115 | * ANSIColor.pm: Version 1.09 released. |
116 | |
117 | * ANSIColor.pm: Add compatibility information for Mac OS X |
118 | Terminal from Daniel Lindsley. |
119 | |
120 | 2004-02-20 Russ Allbery <rra@stanford.edu> |
121 | |
122 | * test.pl: Always use eq, not ==, for string comparisons. |
123 | |
2e589669 |
124 | 2004-02-19 Russ Allbery <rra@stanford.edu> |
125 | |
126 | * ANSIColor.pm: Version 1.08 released. |
127 | |
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. |
131 | |
2d1e314f |
132 | 2003-03-25 Russ Allbery <rra@stanford.edu> |
133 | |
134 | * ANSIColor.pm: Version 1.07 released. |
135 | |
136 | * ANSIColor.pm: Add PuTTY, Windows telnet, and Cygwin OpenSSH |
137 | information to the terminal emulators table, and update the URL to |
138 | the ECMA standard. |
139 | |
140 | 2002-12-09 Russ Allbery <rra@stanford.edu> |
141 | |
142 | * ANSIColor.pm: Version 1.06 released to synchronize the version |
143 | on CPAN with the version in Perl core. |
144 | |
145 | * ANSIColor.pm: Fix typo in L<> link in documentation. |
146 | |
147 | 2002-06-28 Russ Allbery <rra@stanford.edu> |
148 | |
149 | * ANSIColor.pm: Version 1.05 released. |
150 | |
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. |
155 | |
156 | 2002-02-14 Russ Allbery <rra@stanford.edu> |
157 | |
158 | * ANSIColor.pm: Added a mention of the specific Windows consoles |
159 | that don't work with this module. |
160 | |
110e9fb0 |
161 | 2001-07-10 Russ Allbery <rra@stanford.edu> |
162 | |
163 | * ANSIColor.pm: Version 1.04 released. |
164 | |
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. |
171 | |
172 | * ANSIColor.pm (AUTOLOAD): Add support for ANSI_COLORS_DISABLED. |
173 | (color): Likewise. |
174 | (colored): Likewise. |
175 | * test.pl: Add tests for ANSI_COLORS_DISABLED. |
176 | |
177 | * ANSIColor.pm (uncolor): New function. |
178 | * test.pl: Add a test for it. |
179 | |
180 | 2000-08-06 Russ Allbery <rra@stanford.edu> |
181 | |
182 | * ANSIColor.pm: Version 1.03 released. |
183 | |
184 | * Makefile.PL: Install in the Perl library directory for Perl |
185 | versions >= 5.6.0. |
186 | |
187 | * test.pl: Added a new test for the array reference syntax for |
188 | colored. |
189 | |
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. |
198 | |
199 | 1998-11-27 Russ Allbery <rra@stanford.edu> |
200 | |
201 | * ANSIColor.pm: Version 1.02 released. |
202 | |
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. |
206 | |
207 | 1998-04-14 Russ Allbery <rra@stanford.edu> |
208 | |
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. |
212 | |
213 | 1997-12-10 Russ Allbery <rra@stanford.edu> |
214 | |
215 | * ANSIColor.pm: Version 1.01 released. |
216 | |
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. |
221 | |
222 | 1997-11-29 Russ Allbery <rra@stanford.edu> |
223 | |
224 | * ANSIColor.pm: Version 1.00 released. |
225 | |
226 | * Makefile.PL: Now gets version information from the module, has |
227 | the correct rules to build a distribution. |
228 | |
229 | * test.pl: Comments trimmed, minor test modifications. |
230 | |
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 |
235 | detabified. |
236 | |
237 | * test.pl: Added test for EACHLINE with trailing delimiters. |
238 | |
239 | 1997-02-17 Russ Allbery <rra@stanford.edu> |
240 | |
241 | * ANSIColor.pm: Version 0.9 released. |
242 | |
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. |
248 | |
249 | 1997-01-08 Russ Allbery <rra@stanford.edu> |
250 | |
251 | * ANSIColor.pm: Version 0.8 released. |
252 | |
253 | * test.pl: Fixed the test numbering in the BEGIN block. |
254 | |
255 | * test.pl: Reformatted and commented to fit my programming style. |
256 | |
257 | * ANSIColor.pm: Changed the method by which $VERSION is set so |
258 | that it will always have two digits after the decimal point. |
259 | |
260 | * test.pl: New file. |
261 | |
262 | * ANSIColor.pm: [Revision 0.7] Changed the codes so that reset is |
263 | always consistantly "\e[0m". |
264 | |
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 |
268 | this as well. |
269 | |
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. |
273 | |
274 | 1996-12-07 Russ Allbery <rra@stanford.edu> |
275 | |
276 | * ANSIColor.pm: [Revision 0.4] Added POD documentation. |
277 | |
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. |
281 | |
282 | 1996-12-04 Russ Allbery <rra@stanford.edu> |
283 | |
284 | * ANSIColor.pm: [Revision 0.2] Changed return syntax and check for |
285 | the null attribute string. |
286 | |
287 | * ANSIColor.pm: New file. |