#define NCOLORS (sizeof default_colors/sizeof default_colors[0])
const int message_base_color = NCOLORS;
+const int menu_color_table_size = NCOLORS+256;
/* Algorithmically generate the msgXX colors */
void set_msg_colors_global(struct color_table *tbl,
void console_prepare(void);
void console_cleanup(void);
-extern const int message_base_color;
+extern const int message_base_color, menu_color_table_size;
int mygetkey(clock_t timeout);
int show_message_file(const char *filename, const char *background);
prepare_screen_for_menu(void)
{
console_color_table = cm->color_table;
- console_color_table_size = message_base_color+256;
+ console_color_table_size = menu_color_table_size;
set_background(cm->menu_background);
}
int i;
struct color_table *cptr;
p = skipspace(ep);
- cptr = console_color_table;
- for ( i = 0; i < console_color_table_size; i++ ) {
+ cptr = m->color_table;
+ for ( i = 0; i < menu_color_table_size; i++ ) {
if ( (ep = looking_at(p, cptr->name)) ) {
p = skipspace(ep);
if (*p) {