patch-2.2.19 linux/scripts/lxdialog/menubox.c
Next file: linux/scripts/makelst
Previous file: linux/scripts/lxdialog/checklist.c
Back to the patch index
Back to the overall index
- Lines: 44
- Date:
Sun Mar 25 11:37:42 2001
- Orig file:
v2.2.18/scripts/lxdialog/menubox.c
- Orig date:
Sun Mar 25 11:13:33 2001
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/scripts/lxdialog/menubox.c linux/scripts/lxdialog/menubox.c
@@ -91,6 +91,10 @@
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 @@
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 @@
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 @@
? 2 : (button > 2 ? 0 : button);
print_buttons(dialog, height, width, button);
- wrefresh (dialog);
+ wrefresh (menu);
break;
case ' ':
case 's':
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)