From: djk Date: Tue, 29 Jun 1999 10:24:58 +0000 (+0000) Subject: added some more condx for coloration X-Git-Tag: R_1_30~1 X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=22e5a371c4388da2f15179739e7447fec3e4ec0c;p=spider.git added some more condx for coloration --- diff --git a/perl/Console.pm b/perl/Console.pm index fbb0dc16..7e3015f9 100644 --- a/perl/Console.pm +++ b/perl/Console.pm @@ -18,6 +18,8 @@ # 5 - BLUE, $background # 6 - MAGENTA, $background # +# You can or these with A_BOLD and or A_REVERSE for a different effect +# package main; @@ -26,13 +28,16 @@ $maxshist = 500; if ($ENV{'TERM'} =~ /(xterm|ansi)/) { $ENV{'TERM'} = 'color_xterm'; $foreground = COLOR_BLACK(); - $background = A_BOLD|COLOR_WHITE(); + $background = COLOR_WHITE(); @colors = ( - [ '^DX de [\-\w]+:\s+(14[45]\d\d\d|5[01]\d\d\d)', COLOR_PAIR(1) ], + [ '^DX de [\-A-Z0-9]+:\s+(14[45]\d\d\d|5[01]\d\d\d)', COLOR_PAIR(1) ], [ '^DX', COLOR_PAIR(5) ], [ '^To', COLOR_PAIR(3) ], [ '^WWV', COLOR_PAIR(4) ], + [ '^[-A-Z0-9]+ de [-A-Z0-9]+ \d\d-\w\w\w-\d\d\d\d \d\d\d\dZ', COLOR_PAIR(0) ], + [ '^[-A-Z0-9]+ de [-A-Z0-9]+ ', COLOR_PAIR(6) ], [ '^WX', COLOR_PAIR(3) ], + [ '^New mail', A_BOLD|COLOR_PAIR(5) ], ); } if ($ENV{'TERM'} =~ /(console|linux)/) { @@ -43,7 +48,10 @@ if ($ENV{'TERM'} =~ /(console|linux)/) { [ '^DX', COLOR_PAIR(5) ], [ '^To', COLOR_PAIR(3) ], [ '^WWV', COLOR_PAIR(4) ], + [ '^[-A-Z0-9]+ de [-A-Z0-9]+ \d\d-\w\w\w-\d\d\d\d \d\d\d\dZ', COLOR_PAIR(0) ], + [ '^[-A-Z0-9]+ de [-A-Z0-9]+ ', COLOR_PAIR(6) ], [ '^WX', COLOR_PAIR(3) ], + [ '^New mail', A_BOLD|COLOR_PAIR(5) ], ); }