patch-2.2.19 linux/scripts/lxdialog/checklist.c
Next file: linux/scripts/lxdialog/menubox.c
Previous file: linux/scripts/kwhich
Back to the patch index
Back to the overall index
- Lines: 76
- Date:
Sun Mar 25 11:37:42 2001
- Orig file:
v2.2.18/scripts/lxdialog/checklist.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/checklist.c linux/scripts/lxdialog/checklist.c
@@ -51,6 +51,10 @@
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);
+ }
}
/*
@@ -104,8 +108,8 @@
print_button (dialog, "Select", y, x, selected == 0);
print_button (dialog, " Help ", y, x + 14, selected == 1);
- wmove(dialog, y, x+1 + 14*selected);
- wrefresh (dialog);
+ /* wmove(dialog, y, x+1 + 14*selected);
+ wrefresh (dialog);*/
}
/*
@@ -215,7 +219,7 @@
print_buttons(dialog, height, width, 0);
while (key != ESC) {
- key = wgetch (dialog);
+ key = wgetch (list);
for (i = 0; i < max_choice; i++)
if (toupper(key) == toupper(items[(scroll+i)*3+1][0]))
@@ -245,7 +249,7 @@
print_arrows(dialog, choice, item_no, scroll,
box_y, box_x + check_x + 5, list_height);
- wrefresh (dialog);
+ wnoutrefresh (dialog);
continue; /* wait for another key press */
} else
@@ -273,7 +277,7 @@
print_arrows(dialog, choice, item_no, scroll,
box_y, box_x + check_x + 5, list_height);
- wrefresh (dialog);
+ wnoutrefresh (dialog);
continue; /* wait for another key press */
} else
@@ -288,7 +292,7 @@
print_item (list, items[(scroll + choice) * 3 + 1],
status[scroll + choice], choice, TRUE);
wnoutrefresh (list);
- wrefresh (dialog);
+ wnoutrefresh (dialog);
}
continue; /* wait for another key press */
}
@@ -306,7 +310,7 @@
? 1 : (button > 1 ? 0 : button);
print_buttons(dialog, height, width, button);
- wrefresh (dialog);
+ wnoutrefresh (dialog);
break;
case 'S':
case 's':
@@ -329,7 +333,7 @@
}
}
wnoutrefresh (list);
- wrefresh (dialog);
+ wnoutrefresh (dialog);
for (i = 0; i < item_no; i++) {
if (status[i]) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)