4 void init_colors (void);
8 extern int disable_colors
;
10 extern int attr_pairs
[];
12 # define MY_COLOR_PAIR(x) COLOR_PAIR(x)
14 # define MY_COLOR_PAIR(x) (COLOR_PAIR(x) | attr_pairs [x])
17 #define PORT_COLOR(co,bw) (use_colors?co:bw)
19 /* Beware! When using Slang with color, not all the indexes are free.
20 See myslang.h (A_*) */
21 #define NORMAL_COLOR (PORT_COLOR (MY_COLOR_PAIR (1), 0))
22 #define SELECTED_COLOR (PORT_COLOR (MY_COLOR_PAIR (2),A_REVERSE))
23 #define MARKED_COLOR (PORT_COLOR (MY_COLOR_PAIR (3),A_BOLD))
26 #define MARKED_SELECTED_COLOR (PORT_COLOR (MY_COLOR_PAIR (4),(SLtt_Use_Ansi_Colors ? A_BOLD_REVERSE : A_REVERSE | A_BOLD)))
28 #define MARKED_SELECTED_COLOR (PORT_COLOR (MY_COLOR_PAIR (4),A_REVERSE | A_BOLD))
31 #define ERROR_COLOR (PORT_COLOR (MY_COLOR_PAIR (5),0))
32 #define MENU_ENTRY_COLOR (PORT_COLOR (MY_COLOR_PAIR (6),A_REVERSE))
33 #define REVERSE_COLOR (PORT_COLOR (MY_COLOR_PAIR (7),A_REVERSE))
34 #define Q_SELECTED_COLOR (PORT_COLOR (SELECTED_COLOR, 0))
35 #define Q_UNSELECTED_COLOR REVERSE_COLOR
37 extern int sel_mark_color
[4];
38 extern int dialog_colors
[4];
41 #define COLOR_NORMAL (PORT_COLOR (MY_COLOR_PAIR (8),A_REVERSE))
42 #define COLOR_FOCUS (PORT_COLOR (MY_COLOR_PAIR (9),A_BOLD))
43 #define COLOR_HOT_NORMAL (PORT_COLOR (MY_COLOR_PAIR (10),0))
44 #define COLOR_HOT_FOCUS (PORT_COLOR (MY_COLOR_PAIR (11),0))
46 #define VIEW_UNDERLINED_COLOR (PORT_COLOR (MY_COLOR_PAIR(12),A_UNDERLINE))
47 #define MENU_SELECTED_COLOR (PORT_COLOR (MY_COLOR_PAIR(13),A_BOLD))
48 #define MENU_HOT_COLOR (PORT_COLOR (MY_COLOR_PAIR(14),0))
49 #define MENU_HOTSEL_COLOR (PORT_COLOR (MY_COLOR_PAIR(15),0))
51 #define HELP_NORMAL_COLOR (PORT_COLOR (MY_COLOR_PAIR(16),A_REVERSE))
52 #define HELP_ITALIC_COLOR (PORT_COLOR (MY_COLOR_PAIR(17),A_REVERSE))
53 #define HELP_BOLD_COLOR (PORT_COLOR (MY_COLOR_PAIR(18),A_REVERSE))
54 #define HELP_LINK_COLOR (PORT_COLOR (MY_COLOR_PAIR(19),0))
55 #define HELP_SLINK_COLOR (PORT_COLOR (MY_COLOR_PAIR(20),A_BOLD))
58 * This should be selectable independently. Default has to be black background
59 * foreground does not matter at all.
61 #define GAUGE_COLOR (PORT_COLOR (MY_COLOR_PAIR(21),0))
62 #define INPUT_COLOR (PORT_COLOR (MY_COLOR_PAIR(22),0))
64 /* Add this to color panel, on BW all pairs are normal */
65 #define DIRECTORY_COLOR (PORT_COLOR (MY_COLOR_PAIR (23),0))
66 #define EXECUTABLE_COLOR (PORT_COLOR (MY_COLOR_PAIR (24),0))
67 #define LINK_COLOR (PORT_COLOR (MY_COLOR_PAIR (25),0))
68 #define STALLED_LINK_COLOR (PORT_COLOR (MY_COLOR_PAIR (26),A_UNDERLINE))
69 #define DEVICE_COLOR (PORT_COLOR (MY_COLOR_PAIR (27),0))
70 #define SPECIAL_COLOR (PORT_COLOR (MY_COLOR_PAIR (28),0))
71 #define CORE_COLOR (PORT_COLOR (MY_COLOR_PAIR (29),0))
74 /* For the default color any unused index may be chosen. */
75 #define DEFAULT_COLOR_INDEX 30
76 #define DEFAULT_COLOR (PORT_COLOR (MY_COLOR_PAIR(DEFAULT_COLOR_INDEX),0))
79 * editor colors - only 3 for normal, search->found, and select, respectively
80 * Last is defined to view color.
82 #define EDITOR_NORMAL_COLOR_INDEX 34
83 #define EDITOR_NORMAL_COLOR (PORT_COLOR (MY_COLOR_PAIR (EDITOR_NORMAL_COLOR_INDEX), 0))
84 #define EDITOR_BOLD_COLOR (PORT_COLOR (MY_COLOR_PAIR (35),A_BOLD))
85 #define EDITOR_MARKED_COLOR (PORT_COLOR (MY_COLOR_PAIR (36),A_REVERSE))
86 #define EDITOR_UNDERLINED_COLOR VIEW_UNDERLINED_COLOR
88 #endif /* __COLOR_H */