From: velho Date: Thu, 15 Apr 2010 15:05:38 +0000 (+0000) Subject: Added a tesh colorizer simple script. X-Git-Tag: SVN~140 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3dc59d2c5d138c2fc31559681ecc1967789f15c9?ds=sidebyside Added a tesh colorizer simple script. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7601 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/tools/tesh/colorize.pl b/tools/tesh/colorize.pl new file mode 100755 index 0000000000..247c433569 --- /dev/null +++ b/tools/tesh/colorize.pl @@ -0,0 +1,15 @@ +#!/usr/bin/perl -w +use Term::ANSIColor qw{:constants}; +$Term::ANSIColor::AUTORESET = 1; + +while(<>){ + if($_ =~ m/^[-]\s.*/){ + print BOLD RED $_; + }elsif ($_ =~ m/^[+]\s.*/){ + print BOLD GREEN $_; + }else{ + print BOLD $_; + } +} + +