X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3dc59d2c5d138c2fc31559681ecc1967789f15c9..aff60c1091a2d608dc5232193afc153b0d07143e:/tools/tesh/colorize.pl diff --git a/tools/tesh/colorize.pl b/tools/tesh/colorize.pl index 247c433569..045ff68447 100755 --- a/tools/tesh/colorize.pl +++ b/tools/tesh/colorize.pl @@ -3,9 +3,9 @@ use Term::ANSIColor qw{:constants}; $Term::ANSIColor::AUTORESET = 1; while(<>){ - if($_ =~ m/^[-]\s.*/){ + if($_ =~ m/^(\d+\:\s)?[-]\s.*/){ print BOLD RED $_; - }elsif ($_ =~ m/^[+]\s.*/){ + }elsif ($_ =~ m/^(\d+\:\s)?[+]\s.*/){ print BOLD GREEN $_; }else{ print BOLD $_;