Skip to content

Commit 56fb787

Browse files
committed
Attribute stack support to David Nicol
1 parent c6cb602 commit 56fb787

File tree

6 files changed

+15
-11
lines changed

6 files changed

+15
-11
lines changed

Changes

+2-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ v6.0.0 - Not Released
222222
previous attribute set, and LOCALCOLOR surrounds its argument in
223223
PUSHCOLOR and POPCOLOR. If $AUTOLOCAL is set, each sequence of color
224224
constants will be implicitly preceded by LOCALCOLOR. This support was
225-
contributed by openmethods.com voice solutions.
225+
written by David Nicol and contributed by openmethods.com voice
226+
solutions.
226227

227228
- When AUTOLOAD is called to generate a constant sub and the environment
228229
variable ANSI_COLORS_DISABLED is set, return the stringified arguments

README

+2-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ LICENSE
155155
GPL and the Artistic License. Please see your Perl distribution for
156156
the details and copies of the licenses.
157157

158-
PUSH/POP support submitted 2007 by openmethods.com voice solutions
158+
PUSH/POP support, by David Nicol, contributed in 2007 by
159+
openmethods.com voice solutions
159160

160161
Some files in this distribution are individually released under
161162
different licenses, all of which are compatible with the above general

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ copyright statement and license:
161161
> Artistic License. Please see your Perl distribution for the details and
162162
> copies of the licenses.
163163
>
164-
> PUSH/POP support submitted 2007 by openmethods.com voice solutions
164+
> PUSH/POP support, by David Nicol, contributed in 2007 by openmethods.com
165+
> voice solutions
165166
166167
Some files in this distribution are individually released under different
167168
licenses, all of which are compatible with the above general package

docs/docknot.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ synopsis: simple ANSI text attribute control module
2121
license:
2222
name: Perl
2323
notices: |
24-
PUSH/POP support submitted 2007 by openmethods.com voice solutions
24+
PUSH/POP support, by David Nicol, contributed in 2007 by openmethods.com
25+
voice solutions
2526
copyrights:
2627
- holder: Russ Allbery <[email protected]>
2728
years: 1996-1998, 2000-2002, 2005-2006, 2008-2020, 2024

lib/Term/ANSIColor.pm

+6-6
Original file line numberDiff line numberDiff line change
@@ -632,10 +632,10 @@ Term::ANSIColor - Color screen output using ANSI escape sequences
632632
=for stopwords
633633
cyan colorize namespace runtime TMTOWTDI cmd.exe cmd.exe. 4nt.exe. 4nt.exe
634634
command.com NT ESC Delvare SSH OpenSSH aixterm ECMA-048 Fraktur overlining
635-
Zenin reimplemented Allbery PUSHCOLOR POPCOLOR LOCALCOLOR openmethods.com
636-
openmethods.com. grey ATTR urxvt mistyped prepending Bareword filehandle
637-
Cygwin Starsinic aterm rxvt CPAN RGB Solarized Whitespace alphanumerics
638-
undef CLICOLOR NNN GGG RRR strikethrough truecolor
635+
Zenin reimplemented Allbery PUSHCOLOR POPCOLOR LOCALCOLOR openmethods.com grey
636+
ATTR urxvt mistyped prepending Bareword filehandle Cygwin Starsinic aterm rxvt
637+
CPAN RGB Solarized Whitespace alphanumerics undef CLICOLOR NNN GGG RRR
638+
strikethrough truecolor
639639
640640
=head1 SYNOPSIS
641641
@@ -1358,8 +1358,8 @@ Allbery <[email protected]>, and then combined with the original idea by
13581358
Russ with input from Zenin. 256-color support is based on work by Kurt
13591359
Starsinic. Russ Allbery now maintains this module.
13601360
1361-
PUSHCOLOR, POPCOLOR, and LOCALCOLOR were contributed by openmethods.com
1362-
voice solutions.
1361+
PUSHCOLOR, POPCOLOR, and LOCALCOLOR, by David Nicol, were contributed by
1362+
openmethods.com voice solutions.
13631363
13641364
=head1 COPYRIGHT AND LICENSE
13651365

t/module/basic.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ is((POPCOLOR 'text'), "\e[0mtext\e[0m", 'POPCOLOR with empty stack');
191191
$Term::ANSIColor::AUTORESET = 0;
192192

193193
# Test push and pop support with the syntax from the original openmethods.com
194-
# submission, which uses a different coding style.
194+
# submission by David Nicol, which uses a different coding style.
195195
is(
196196
PUSHCOLOR(RED ON_GREEN),
197197
"\e[31m\e[42m",

0 commit comments

Comments
 (0)