From: ewt Date: Wed, 27 Mar 1996 17:47:07 +0000 (+0000) Subject: added COLORSET_LISTBOX colors X-Git-Tag: 0-1~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e6e86d9d11b3e16bdc0826cce18d1304f4f61827;p=thirdparty%2Fnewt.git added COLORSET_LISTBOX colors --- diff --git a/newt.c b/newt.c index c658058..bf6e072 100644 --- a/newt.c +++ b/newt.c @@ -39,6 +39,8 @@ struct newtColors newtDefaultColorPalette = { "green", "black", /* active checkbox fg, bg */ "yellow", "red", /* entry box fg, bg */ "blue", "lightgray", /* label fg, bg */ + "red", "lightgray", /* listbox fg, bg */ + "lightgray", "red", /* active listbox fg, bg */ }; struct keymap keymap[] = { @@ -57,6 +59,8 @@ struct keymap keymap[] = { { "\033[3~", NEWT_KEY_DELETE, "kl" }, + { "\033\t", NEWT_KEY_UNTAB, NULL }, + { NULL, 0, NULL }, /* LEAVE this one */ }; char keyPrefix = '\033'; @@ -112,6 +116,9 @@ void newtSetColors(struct newtColors colors) { colors.actCheckboxBg); SLtt_set_color(COLORSET_ENTRY, "", colors.entryFg, colors.entryBg); SLtt_set_color(COLORSET_LABEL, "", colors.labelFg, colors.labelBg); + SLtt_set_color(COLORSET_LISTBOX, "", colors.listboxFg, colors.listboxBg); + SLtt_set_color(COLORSET_ACTLISTBOX, "", colors.actListboxFg, + colors.actListboxBg); } int newtGetKey(void) {