Create curses colour pairs for 256 colours

Keep only 8 background colours but if curses supports 256 colours and
256*8 colours pairs, create colours pairs for 256 foregrounds rather
than just 16.
This commit is contained in:
Doktor L
2026-06-19 16:36:27 +02:00
committed by Patric Mueller
parent 7036f902d2
commit 19c87585fa
4 changed files with 22 additions and 7 deletions
+3
View File
@@ -8,8 +8,11 @@
/* Global declarations */
#define CURSES_NUM_BACKGROUND_COLORS 8
int curses_getch(void);
int curses_read_char(void);
boolean curses_has_256color(void);
void curses_toggle_color_attr(WINDOW *win, int color, int attr, int onoff);
void curses_menu_color_attr(WINDOW *win, int color, int attr, int onoff);
void curses_bail(const char *mesg);