altered default colours
[spider.git] / perl / Console.pm
1 #
2 # These are the default variables for the console program
3 #
4 # DON'T ALTER this file, copy it to ../local and alter that
5 # instead. This file will be overwritten with new releases
6 #
7 # Copyright (c) 1999 Dirk Koopman G1TLH
8 #
9 # $Id$
10 #
11 # The colour pairs are:-
12 #
13 # 0 - $foreground, $background
14 # 1 - RED, $background
15 # 2 - BROWN, $background
16 # 3 - GREEN, $background
17 # 4 - CYAN, $background
18 # 5 - BLUE, $background
19 # 6 - MAGENTA, $background
20 #
21
22 package main;
23
24 $maxkhist = 100;
25 $maxshist = 500;
26 if ($ENV{'TERM'} =~ /xterm/) {
27         $ENV{'TERM'} = 'color_xterm';
28         $foreground = COLOR_BLACK();
29         $background = A_BOLD|COLOR_WHITE();
30         @colors = (
31                    [ '^DX de [\-\w]+:\s+(14[45]\d\d\d|5[01]\d\d\d)', COLOR_PAIR(1) ],
32                    [ '^DX', COLOR_PAIR(5) ],
33                    [ '^To', COLOR_PAIR(3) ],
34                    [ '^WWV', COLOR_PAIR(4) ],
35                    [ '^WX', COLOR_PAIR(3) ],
36                    );
37 }
38 if ($ENV{'TERM'} =~ /(console|linux)/) {
39         $foreground = COLOR_WHITE();
40         $background = COLOR_BLACK();
41         @colors = (
42                    [ '^DX de [\-\w]+:\s+(14[45]\d\d\d|5[01]\d\d\d)', COLOR_PAIR(1) ],
43                    [ '^DX', COLOR_PAIR(5) ],
44                    [ '^To', COLOR_PAIR(3) ],
45                    [ '^WWV', COLOR_PAIR(4) ],
46                    [ '^WX', COLOR_PAIR(3) ],
47                    );
48 }
49
50
51 1;