Skip to content

Commit

Permalink
Attribute stack support to David Nicol
Browse files Browse the repository at this point in the history
  • Loading branch information
rra committed Apr 7, 2024
1 parent c6cb602 commit 56fb787
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 11 deletions.
3 changes: 2 additions & 1 deletion Changes
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ v6.0.0 - Not Released
previous attribute set, and LOCALCOLOR surrounds its argument in
PUSHCOLOR and POPCOLOR. If $AUTOLOCAL is set, each sequence of color
constants will be implicitly preceded by LOCALCOLOR. This support was
contributed by openmethods.com voice solutions.
written by David Nicol and contributed by openmethods.com voice
solutions.

- When AUTOLOAD is called to generate a constant sub and the environment
variable ANSI_COLORS_DISABLED is set, return the stringified arguments
Expand Down
3 changes: 2 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ LICENSE
GPL and the Artistic License. Please see your Perl distribution for
the details and copies of the licenses.

PUSH/POP support submitted 2007 by openmethods.com voice solutions
PUSH/POP support, by David Nicol, contributed in 2007 by
openmethods.com voice solutions

Some files in this distribution are individually released under
different licenses, all of which are compatible with the above general
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ copyright statement and license:
> Artistic License. Please see your Perl distribution for the details and
> copies of the licenses.
>
> PUSH/POP support submitted 2007 by openmethods.com voice solutions
> PUSH/POP support, by David Nicol, contributed in 2007 by openmethods.com
> voice solutions
Some files in this distribution are individually released under different
licenses, all of which are compatible with the above general package
Expand Down
3 changes: 2 additions & 1 deletion docs/docknot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ synopsis: simple ANSI text attribute control module
license:
name: Perl
notices: |
PUSH/POP support submitted 2007 by openmethods.com voice solutions
PUSH/POP support, by David Nicol, contributed in 2007 by openmethods.com
voice solutions
copyrights:
- holder: Russ Allbery <rra@cpan.org>
years: 1996-1998, 2000-2002, 2005-2006, 2008-2020, 2024
Expand Down
12 changes: 6 additions & 6 deletions lib/Term/ANSIColor.pm
Original file line number Diff line number Diff line change
Expand Up @@ -632,10 +632,10 @@ Term::ANSIColor - Color screen output using ANSI escape sequences
=for stopwords
cyan colorize namespace runtime TMTOWTDI cmd.exe cmd.exe. 4nt.exe. 4nt.exe
command.com NT ESC Delvare SSH OpenSSH aixterm ECMA-048 Fraktur overlining
Zenin reimplemented Allbery PUSHCOLOR POPCOLOR LOCALCOLOR openmethods.com
openmethods.com. grey ATTR urxvt mistyped prepending Bareword filehandle
Cygwin Starsinic aterm rxvt CPAN RGB Solarized Whitespace alphanumerics
undef CLICOLOR NNN GGG RRR strikethrough truecolor
Zenin reimplemented Allbery PUSHCOLOR POPCOLOR LOCALCOLOR openmethods.com grey
ATTR urxvt mistyped prepending Bareword filehandle Cygwin Starsinic aterm rxvt
CPAN RGB Solarized Whitespace alphanumerics undef CLICOLOR NNN GGG RRR
strikethrough truecolor
=head1 SYNOPSIS
Expand Down Expand Up @@ -1358,8 +1358,8 @@ Allbery <rra@cpan.org>, and then combined with the original idea by
Russ with input from Zenin. 256-color support is based on work by Kurt
Starsinic. Russ Allbery now maintains this module.
PUSHCOLOR, POPCOLOR, and LOCALCOLOR were contributed by openmethods.com
voice solutions.
PUSHCOLOR, POPCOLOR, and LOCALCOLOR, by David Nicol, were contributed by
openmethods.com voice solutions.
=head1 COPYRIGHT AND LICENSE
Expand Down
2 changes: 1 addition & 1 deletion t/module/basic.t
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ is((POPCOLOR 'text'), "\e[0mtext\e[0m", 'POPCOLOR with empty stack');
$Term::ANSIColor::AUTORESET = 0;

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

0 comments on commit 56fb787

Please sign in to comment.