spider/perl/Console.pm

73 lines
1.9 KiB
Perl
Raw Normal View History

1999-06-28 23:53:12 +00:00
#
# These are the default variables for the console program
#
# DON'T ALTER this file, copy it to ../local and alter that
# instead. This file will be overwritten with new releases
#
# Copyright (c) 1999 Dirk Koopman G1TLH
#
# $Id$
#
# The colour pairs are:-
#
# 0 - $foreground, $background
# 1 - RED, $background
# 2 - BROWN, $background
# 3 - GREEN, $background
# 4 - CYAN, $background
# 5 - BLUE, $background
# 6 - MAGENTA, $background
1999-11-21 15:55:35 +00:00
# 7 - RED, BLUE
# 8 - BROWN, BLUE
# 9 - GREEN, BLUE
# 10 - CYAN, BLUE
# 11 - BLUE, RED
# 12 - MAGENTA, BLUE
# 13 - BROWN, GREEN
# 14 - RED, GREEN
#
1999-06-29 10:24:58 +00:00
# You can or these with A_BOLD and or A_REVERSE for a different effect
#
1999-06-28 23:53:12 +00:00
package main;
$maxkhist = 100;
$maxshist = 500;
1999-06-29 09:24:35 +00:00
if ($ENV{'TERM'} =~ /(xterm|ansi)/) {
2002-09-17 21:40:37 +00:00
# $ENV{'TERM'} = 'color_xterm';
$foreground = COLOR_BLACK();
1999-06-29 10:24:58 +00:00
$background = COLOR_WHITE();
$mycallcolor = COLOR_PAIR(1);
1999-06-29 00:31:33 +00:00
@colors = (
[ '^DX de [\-A-Z0-9]+:\s+([57][01]\d\d\d\.|\d\d\d\d\d\d+.)', COLOR_PAIR(1) ],
1999-06-29 00:31:33 +00:00
[ '^DX', COLOR_PAIR(5) ],
[ '^To', COLOR_PAIR(3) ],
[ '^(?:WWV|WCY)', COLOR_PAIR(4) ],
1999-06-29 10:24:58 +00:00
[ '^[-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) ],
1999-06-29 00:31:33 +00:00
[ '^WX', COLOR_PAIR(3) ],
1999-11-21 15:55:35 +00:00
[ '^(User|Node)\b', COLOR_PAIR(8) ],
1999-06-29 10:24:58 +00:00
[ '^New mail', A_BOLD|COLOR_PAIR(5) ],
1999-11-21 15:55:35 +00:00
1999-06-29 00:31:33 +00:00
);
}
if ($ENV{'TERM'} =~ /(console|linux)/) {
$foreground = COLOR_WHITE();
$background = COLOR_BLACK();
$mycallcolor = COLOR_PAIR(1);
1999-06-29 00:31:33 +00:00
@colors = (
[ '^DX de [\-A-Z0-9]+:\s+([57][01]\d\d\d\.|\d\d\d\d\d\d+.)', COLOR_PAIR(1) ],
[ '^DX', COLOR_PAIR(4) ],
1999-06-28 23:53:12 +00:00
[ '^To', COLOR_PAIR(3) ],
[ '^(?:WWV|WCY)', COLOR_PAIR(5) ],
1999-06-29 10:24:58 +00:00
[ '^[-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) ],
1999-06-29 00:31:33 +00:00
[ '^WX', COLOR_PAIR(3) ],
1999-11-21 15:55:35 +00:00
[ '^(User|Node)\b', A_BOLD|COLOR_PAIR(8) ],
1999-06-29 10:24:58 +00:00
[ '^New mail', A_BOLD|COLOR_PAIR(5) ],
1999-06-29 00:31:33 +00:00
);
}
1999-06-28 23:53:12 +00:00
1;