perl:ansi_color
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ansi_color [2009/07/22 13:33] – created tkbletsc | perl:ansi_color [2009/09/04 09:20] (current) – tkbletsc | ||
---|---|---|---|
Line 4: | Line 4: | ||
sub ansi { | sub ansi { | ||
my ($c) = @_; | my ($c) = @_; | ||
- | if (!$c) { return | + | if (!$c) { return |
my %colors = qw( | my %colors = qw( | ||
reset | reset | ||
Line 29: | Line 29: | ||
on_white | on_white | ||
); | ); | ||
- | my $r = join(';', | + | my $r = join(';', |
- | return $r ? " | + | return |
} | } | ||
</ | </ |
perl/ansi_color.1248294828.txt.gz · Last modified: 2009/07/22 13:33 by tkbletsc