$Log$
+ Revision 590.76 2002/01/19 16:56:31 error
+ * Fixed color support, now works when rc_ansi_color is on or auto
+
Revision 590.75 2002/01/19 15:10:25 error
* Cosmetics for the client status line
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
extern int screenheight;
extern int screenwidth;
+extern int rc_ansi_color;
extern void check_screen_dims(void);
#endif
nonl();
intrflush(stdscr, FALSE);
keypad(stdscr, TRUE);
- } else
-#endif /* HAVE_CURSES_H */
- {
- send_ansi_detect();
- look_for_ansi();
- cls(0);
- color(1+DIM_WHITE);
- }
-#ifdef HAVE_CURSES_H
- if (myscreen) {
/* Setup all our colors */
start_color();
+ if (rc_ansi_color)
+ enable_color = 1;
init_pair(1+DIM_BLACK, COLOR_BLACK, COLOR_BLACK);
init_pair(1+DIM_RED, COLOR_RED, COLOR_BLACK);
init_pair(1+DIM_GREEN, COLOR_GREEN, COLOR_BLACK);
init_pair(1+DIM_CYAN, COLOR_CYAN, COLOR_BLACK);
init_pair(1+DIM_WHITE, COLOR_WHITE, COLOR_BLACK);
init_pair(17, COLOR_WHITE, COLOR_BLUE);
- }
+ } else
#endif /* HAVE_CURSES_H */
+ {
+ send_ansi_detect();
+ look_for_ansi();
+ cls(0);
+ color(1+DIM_WHITE);
+ }
screen_set();
windows_new();
}