From: ewt Date: Tue, 23 Jul 1996 03:53:52 +0000 (+0000) Subject: 1) took color changes from Kit X-Git-Tag: v0-9~77 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f026c7eb21ce9757b87eaf9bf5bb6da16daa600b;p=thirdparty%2Fnewt.git 1) took color changes from Kit 2) added NEWT_KEY_PGDN, NEWT_KEY_PGUP --- diff --git a/newt.c b/newt.c index 1c7cca4..330a103 100644 --- a/newt.c +++ b/newt.c @@ -33,16 +33,16 @@ struct newtColors newtDefaultColorPalette = { "black", "lightgray", /* window fg, bg */ "white", "black", /* shadow fg, bg */ "red", "lightgray", /* title fg, bg */ - "blue", "magenta", /* button fg, bg */ - "magenta", "blue", /* active button fg, bg */ - "black", "green", /* checkbox fg, fg */ - "green", "black", /* active checkbox fg, bg */ - "yellow", "red", /* entry box fg, bg */ + "lightgray", "red", /* button fg, bg */ + "red", "lightgray", /* active button fg, bg */ + "yellow", "blue", /* checkbox fg, bg */ + "blue", "yellow", /* active checkbox fg, bg */ + "yellow", "blue", /* entry box fg, bg */ "blue", "lightgray", /* label fg, bg */ - "red", "lightgray", /* listbox fg, bg */ - "lightgray", "red", /* active listbox fg, bg */ - "red", "lightgray", /* textbox fg, bg */ - "lightgray", "red", /* active textbox fg, bg */ + "black", "lightgray", /* listbox fg, bg */ + "yellow", "blue", /* active listbox fg, bg */ + "black", "lightgray", /* textbox fg, bg */ + "lightgray", "black", /* active textbox fg, bg */ }; static struct keymap keymap[] = { @@ -63,6 +63,9 @@ static struct keymap keymap[] = { { "\033\t", NEWT_KEY_UNTAB, NULL }, + { "\033[5~", NEWT_KEY_PGUP, NULL }, + { "\033[6~", NEWT_KEY_PGDN, NULL }, + { NULL, 0, NULL }, /* LEAVE this one */ }; static char keyPrefix = '\033';