]> dxcluster.org Git - spider.git/commitdiff
added some new colours
authordjk <djk>
Sun, 21 Nov 1999 15:55:35 +0000 (15:55 +0000)
committerdjk <djk>
Sun, 21 Nov 1999 15:55:35 +0000 (15:55 +0000)
perl/Console.pm
perl/console.pl

index 494392a7b86b2aa6d98307812c150acca6abeb46..b62893b610c6dc24e529b1a741e0417128aeb458 100644 (file)
 # 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) ],
                   );
 }
index 8f028aa7ab9d7e8b2e9bde85e2386b1f66b8caf0..1b390bdc7ca0b92ee52ff2d109bad7730d9f00d4 100755 (executable)
@@ -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);