]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
added COLORSET_LISTBOX colors
authorewt <ewt>
Wed, 27 Mar 1996 17:47:07 +0000 (17:47 +0000)
committerewt <ewt>
Wed, 27 Mar 1996 17:47:07 +0000 (17:47 +0000)
newt.c

diff --git a/newt.c b/newt.c
index c658058eead8c8ac1ba190b543141b6e780f5883..bf6e0728a863036e7f90ca77a798b642621e8e0c 100644 (file)
--- 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) {