User Tools

Site Tools


perl:ansi_color

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
perl:ansi_color [2009/08/13 09:57] – Page moved from ansi_color to perl:ansi_color tkbletscperl:ansi_color [2009/09/04 09:20] (current) tkbletsc
Line 30: Line 30:
  );  );
  my $r = join(';',map {$colors{$_}} split(/\W+/,$c));  my $r = join(';',map {$colors{$_}} split(/\W+/,$c));
- return $r ? "\e[${r}m" : '';+ return length($r? "\e[${r}m" : '';
 } }
 </code> </code>
perl/ansi_color.1250182631.txt.gz · Last modified: 2009/08/13 09:57 by tkbletsc

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki