Path to this page:
./
devel/p5-Term-ANSIColor,
Perl termcap interface
Branch: pkgsrc-2010Q3,
Version: 3.00nb1,
Package name: p5-Term-ANSIColor-3.00nb1,
Maintainer: pkgsrc-usersThis module has two interfaces, one through color() and colored()
and the other through constants. It also offers the utility function
uncolor(), which has to be explicitly imported to be used (see
"SYNOPSIS").
color() takes any number of strings as arguments and considers them
to be space-separated lists of attributes. It then forms and returns
the escape sequence to set those attributes. It doesn't print it
out, just returns it, so you'll have to print it yourself if you
want to (this is so that you can save it as a string, pass it to
something else, send it to a file handle, or do anything else with
it that you might care to).
uncolor() performs the opposite translation, turning escape sequences
into a list of strings.
Required to run:[
lang/perl5]
Master sites: (Expand)
SHA1: 644dde284c889872c1eee2287384e0b29d5a076a
RMD160: 4c854d05ecb067b7a0e4c346a12346930b1ecf54
Filesize: 19.531 KB
Version history: (Expand)
- (2010-10-17) Package added to pkgsrc.se, version p5-Term-ANSIColor-3.00nb1 (created)