interface groundwork for core-side color decisions
(user-side decisions really, but as it stands right now user-side decisions/options are made and processed by the core) add a parameter to add_menu so color can be passed
This commit is contained in:
@@ -650,6 +650,7 @@ curses_view_file(const char *filename, boolean must_exist)
|
||||
char buf[BUFSZ];
|
||||
menu_item *selected = NULL;
|
||||
dlb *fp = dlb_fopen(filename, "r");
|
||||
int clr = 0;
|
||||
|
||||
if (fp == NULL) {
|
||||
if (must_exist)
|
||||
@@ -663,7 +664,7 @@ curses_view_file(const char *filename, boolean must_exist)
|
||||
|
||||
while (dlb_fgets(buf, BUFSZ, fp) != NULL) {
|
||||
curses_add_menu(wid, &nul_glyphinfo, &Id, 0, 0,
|
||||
A_NORMAL, buf, FALSE);
|
||||
A_NORMAL, clr, buf, FALSE);
|
||||
}
|
||||
|
||||
dlb_fclose(fp);
|
||||
|
||||
Reference in New Issue
Block a user