From: djk Date: Sun, 21 Nov 1999 15:55:35 +0000 (+0000) Subject: added some new colours X-Git-Tag: R_1_35~8 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=e6a53556f10b5d2f831dcd7b83655430c9b1a137;p=spider.git added some new colours --- diff --git a/perl/Console.pm b/perl/Console.pm index 494392a7..b62893b6 100644 --- a/perl/Console.pm +++ b/perl/Console.pm @@ -17,7 +17,15 @@ # 4 - CYAN, $background # 5 - BLUE, $background # 6 - MAGENTA, $background -# +# 7 - RED, BLUE +# 8 - BROWN, BLUE +# 9 - GREEN, BLUE +# 10 - CYAN, BLUE +# 11 - BLUE, RED +# 12 - MAGENTA, BLUE +# 13 - BROWN, GREEN +# 14 - RED, GREEN +# # You can or these with A_BOLD and or A_REVERSE for a different effect # @@ -38,7 +46,9 @@ if ($ENV{'TERM'} =~ /(xterm|ansi)/) { [ '^[-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) ], + [ '^(User|Node)\b', COLOR_PAIR(8) ], [ '^New mail', A_BOLD|COLOR_PAIR(5) ], + ); } if ($ENV{'TERM'} =~ /(console|linux)/) { @@ -53,6 +63,7 @@ if ($ENV{'TERM'} =~ /(console|linux)/) { [ '^[-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) ], + [ '^(User|Node)\b', A_BOLD|COLOR_PAIR(8) ], [ '^New mail', A_BOLD|COLOR_PAIR(5) ], ); } diff --git a/perl/console.pl b/perl/console.pl index 8f028aa7..1b390bdc 100755 --- a/perl/console.pl +++ b/perl/console.pl @@ -68,6 +68,14 @@ sub do_initscr init_pair(4, COLOR_CYAN, $background); init_pair(5, COLOR_BLUE, $background); init_pair(6, COLOR_MAGENTA, $background); + init_pair(7, COLOR_RED, COLOR_BLUE); + init_pair(8, COLOR_YELLOW, COLOR_BLUE); + init_pair(9, COLOR_GREEN, COLOR_BLUE); + init_pair(10, COLOR_CYAN, COLOR_BLUE); + init_pair(11, COLOR_BLUE, COLOR_RED); + init_pair(12, COLOR_MAGENTA, COLOR_BLUE); + init_pair(13, COLOR_YELLOW, COLOR_GREEN); + init_pair(14, COLOR_RED, COLOR_GREEN); } $top = $scr->subwin(LINES()-4, COLS, 0, 0);