./devel/p5-Term-ANSIColor, Perl termcap interface

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: pkgsrc-2015Q4, Version: 4.03nb1, Package name: p5-Term-ANSIColor-4.03nb1, Maintainer: pkgsrc-users

This 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]

Required to build:
[devel/p5-Module-Build]

Master sites: (Expand)

SHA1: 43f0df44b07af08c5198d7ee49e1674421d50346
RMD160: 8dde13ccf6004ce3c28fd28d6cec0f984105973f
Filesize: 52.533 KB

Version history: (Expand)