| CPAN Ratings ANSIColor reviews | |
| Home | Search | About | Bitcard Account | Login |
RSS | Module Info | Add a review of ANSIColor
Saves all that tedious mucking about with escape codes. Recommended.
Adrian Howard - 2009-09-01T04:27:58
If you ever wondered how to use colours in the terminal in order to highlight information, look no further than this module. It accomplishes it in a portable, easy to use way with a convenient interface.
Some case studies I did:
1. search.cpan.org/dist/Test-Run-Plugin-... - colour the summary line of the test results.
2. www.mail-archive.com/linux-il@cs.huji... - colour arbitrary regexes in log output.
Shlomi Fish - 2008-09-04T21:08:43
I love adding color to my xterm. This module makes it so easy with print! Xterm coloring + the power of perl == Supremeness! I'm so glad I didn't have to hardcode the xterm coloring escape codes!
Corey D. Hollaway - 2007-11-14T20:53:51
An excellent little module. Good interface, well-documented. A quick demo:
#!/usr/bin/perl
use Term::ANSIColor;
@colors = qw(black red yellow green cyan blue magenta);
foreach $fg (@colors) {
print color("bold $fg") . ' Hello! ' . color('reset');
foreach $bg (@colors) {
$bg eq $fg ? print color("white on_$bg") : print color("$fg on_$bg");
print ' Hello! ' . color('reset');
}
print "\n";
}
Earle Martin - 2007-03-01T03:27:08
|
Perl.org sites
: bugs
| dev
| history
| jobs
| learn
| lists
| use
Site Information and Contacts |
|