projects
/
spider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6f82c4f
)
added some new colours
author
djk
<djk>
Sun, 21 Nov 1999 15:55:35 +0000
(15:55 +0000)
committer
djk
<djk>
Sun, 21 Nov 1999 15:55:35 +0000
(15:55 +0000)
perl/Console.pm
patch
|
blob
|
history
perl/console.pl
patch
|
blob
|
history
diff --git
a/perl/Console.pm
b/perl/Console.pm
index 494392a7b86b2aa6d98307812c150acca6abeb46..b62893b610c6dc24e529b1a741e0417128aeb458 100644
(file)
--- a/
perl/Console.pm
+++ b/
perl/Console.pm
@@
-17,7
+17,15
@@
# 4 - CYAN, $background
# 5 - BLUE, $background
# 6 - MAGENTA, $background
# 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
#
# 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) ],
[ '^[-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) ],
[ '^New mail', A_BOLD|COLOR_PAIR(5) ],
+
);
}
if ($ENV{'TERM'} =~ /(console|linux)/) {
);
}
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) ],
[ '^[-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) ],
);
}
[ '^New mail', A_BOLD|COLOR_PAIR(5) ],
);
}
diff --git
a/perl/console.pl
b/perl/console.pl
index 8f028aa7ab9d7e8b2e9bde85e2386b1f66b8caf0..1b390bdc7ca0b92ee52ff2d109bad7730d9f00d4 100755
(executable)
--- 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(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);
}
$top = $scr->subwin(LINES()-4, COLS, 0, 0);