Curses: implement the windowcolors option

Allow changing the curses windows foreground and background colors,
for example:

OPTIONS=windowcolor:menu #8000F0/20F080 message grey/blue
This commit is contained in:
Pasi Kallinen
2024-03-17 18:41:52 +02:00
parent 9dbab97a1e
commit 4030ef13a0
17 changed files with 214 additions and 32 deletions
+5 -1
View File
@@ -9,11 +9,15 @@
/* Global declarations */
WINDOW *curses_create_window(int width, int height, orient orientation);
WINDOW *curses_create_window(int wid, int width, int height, orient orientation);
int curses_win_clr_inited(int wid);
void curses_set_wid_colors(int wid, WINDOW *win);
void curses_destroy_win(WINDOW * win);
void curses_refresh_nethack_windows(void);
WINDOW *curses_get_nhwin(winid wid);
void curses_parse_wid_colors(int wid, char *fg, char *bg);
boolean parse_hexstr(char *colorbuf, int *red, int *green, int *blue);
void curses_add_nhwin(winid wid, int height, int width, int y, int x,
orient orientation, boolean border);
void curses_add_wid(winid wid);