Skip Menu |
 

This queue is for tickets about the Term-ANSIColor CPAN distribution.

Report information
The Basics
Id: 75484
Status: resolved
Priority: 0/
Queue: Term-ANSIColor

People
Owner: Nobody in particular
Requestors: KENTNL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.01
Fixed in: 3.02



Subject: Add ITALIC support

There's only one styling code really missing from this module that I can see and thats the italic flag \e[3m

Quite a few terminals support this flag , such as urxvt.

Reasonably easy to implement,

 

   italic  =>  3

 

In %ATTRIBUTES aught to do the trick.

 

As a hack for others using Term::ANSIColor until this is implemented, they can do

---

 

use Term::ANSIColor qw( :constants );
BEGIN {
   $Term::ANSIColor::ATTRIBUTES{italic} = 3;
}
sub ITALIC() { Term::ANSIColor::ITALIC(@_) }

---

 

And it should just work with all the right automagic.
 

Subject: Re: [rt.cpan.org #75484] Add ITALIC support
Date: Sun, 18 Mar 2012 14:00:56 -0700
To: bug-Term-ANSIColor [...] rt.cpan.org
From: Russ Allbery <rra [...] stanford.edu>
Download (untitled) / with headers
text/plain 493b
"Kent Fredric via RT" <bug-Term-ANSIColor@rt.cpan.org> writes: Show quoted text
> There's only one styling code really missing from this module that I can > see and thats the italic flag \e[3m
Show quoted text
> Quite a few terminals support this flag , such as urxvt.
Show quoted text
> Reasonably easy to implement,
Show quoted text
> italic => 3
Show quoted text
> In %ATTRIBUTES aught to do the trick.
Added, thanks. This will be in Term::ANSIColor 3.02, which will be released shortly. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.