patch-2.4.2 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 Feb 4 10:05:30 2001
- Orig file:
v2.4.1/linux/scripts/lxdialog/menubox.c
- Orig date:
Mon Feb 1 12:03:20 1999
diff -u --recursive --new-file v2.4.1/linux/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)