in reply to perlcritic --color option not working
#!/usr/bin/perl -l use strict; use warnings; use Term::ANSIColor qw(colorvalid); use Term::ANSIScreen qw/:color :constants/; my $valid = colorvalid ('magenta'); print "Color string is ", $valid ? "valid" : "invalid"; print MAGENTA . "Magenta" . RESET;
See:
Term::ANSIColor
Term::ANSIScreen
Additional tests:
To run ansicolor:colortest prints out all 256 xterm colors.cat ansicolor
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perlcritic --color option not working
by roadrider (Novice) on Dec 19, 2011 at 15:24 UTC |