| CPAN Ratings (Gamma) ANSIColor reviews | |
| Home | Search | About | Login |
RSS | Module Info | Add a review of ANSIColor
1 out of 1 found this review helpful:
Saves all that tedious mucking about with escape codes. Recommended.
Adrian Howard - 2009-09-01 04:27:58
Was this review helpful to you?
Yes
No
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. http://search.cpan.org/dist/Test-Run-Plugin-ColorSummary/ - colour the summary line of the test results.
2. http://www.mail-archive.com/linux-il@cs.huji.ac.il/msg52876.html - colour arbitrary regexes in log output.
Shlomi Fish - 2008-09-04 21:08:43
Was this review helpful to you?
Yes
No
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-14 20:53:51
Was this review helpful to you?
Yes
No
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-01 03:27:08
Was this review helpful to you?
Yes
No
|
|
|