diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2001-03-09 20:33:35 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2001-03-09 20:33:35 +0000 |
commit | 116674acc97ba75a720329996877077d988443a2 (patch) | |
tree | 6a3f2ff0b612ae2ee8a3f3509370c9e6333a53b3 /scripts/lxdialog | |
parent | 71118c319fcae4a138f16e35b4f7e0a6d53ce2ca (diff) |
Merge with Linux 2.4.2.
Diffstat (limited to 'scripts/lxdialog')
-rw-r--r-- | scripts/lxdialog/checklist.c | 4 | ||||
-rw-r--r-- | scripts/lxdialog/menubox.c | 14 |
2 files changed, 14 insertions, 4 deletions
diff --git a/scripts/lxdialog/checklist.c b/scripts/lxdialog/checklist.c index a1bf1f738..2cdc3703a 100644 --- a/scripts/lxdialog/checklist.c +++ b/scripts/lxdialog/checklist.c @@ -51,6 +51,10 @@ print_item (WINDOW * win, const char *item, int status, mvwaddch(win, choice, item_x, item[0]); wattrset (win, selected ? item_selected_attr : item_attr); waddstr (win, (char *)item+1); + if (selected) { + wmove (win, choice, check_x+1); + wrefresh (win); + } } /* diff --git a/scripts/lxdialog/menubox.c b/scripts/lxdialog/menubox.c index d6dc07d40..a234e9f3b 100644 --- a/scripts/lxdialog/menubox.c +++ b/scripts/lxdialog/menubox.c @@ -91,6 +91,10 @@ print_item (WINDOW * win, const char *item, int choice, int selected, int hotkey wattrset (win, selected ? tag_key_selected_attr : tag_key_attr); mvwaddch(win, choice, item_x+j, menu_item[j]); } + if (selected) { + wmove (win, choice, item_x+1); + wrefresh (win); + } } /* @@ -267,9 +271,11 @@ dialog_menu (const char *title, const char *prompt, int height, int width, box_y, box_x+item_x+1, menu_height); print_buttons (dialog, height, width, 0); + wmove (menu, choice, item_x+1); + wrefresh (menu); while (key != ESC) { - key = wgetch(dialog); + key = wgetch(menu); if (key < 256 && isalpha(key)) key = tolower(key); @@ -372,8 +378,8 @@ dialog_menu (const char *title, const char *prompt, int height, int width, print_arrows(dialog, item_no, scroll, box_y, box_x+item_x+1, menu_height); - wnoutrefresh (menu); - wrefresh (dialog); + wnoutrefresh (dialog); + wrefresh (menu); continue; /* wait for another key press */ } @@ -386,7 +392,7 @@ dialog_menu (const char *title, const char *prompt, int height, int width, ? 2 : (button > 2 ? 0 : button); print_buttons(dialog, height, width, button); - wrefresh (dialog); + wrefresh (menu); break; case ' ': case 's': |