Lines Matching defs:choice
18 static void print_item(WINDOW * win, int choice, int selected)
28 wmove(win, choice, 0);
32 wmove(win, choice, check_x);
39 mvwaddch(win, choice, item_x, list_item[0]);
43 wmove(win, choice, check_x + 1);
52 static void print_arrows(WINDOW * win, int choice, int item_no, int scroll,
72 if ((height < item_no) && (scroll + choice < item_no - 1)) {
108 int key = 0, button = 0, choice = 0, scroll = 0, max_choice;
114 choice = item_n();
116 choice = item_n();
175 if (choice >= list_height) {
176 scroll = choice - list_height + 1;
177 choice -= scroll;
183 print_item(list, i, i == choice);
186 print_arrows(dialog, choice, item_count(), scroll,
207 if (!choice) {
222 print_arrows(dialog, choice, item_count(),
230 i = choice - 1;
232 if (choice == max_choice - 1) {
233 if (scroll + choice >= item_count() - 1)
250 print_arrows(dialog, choice, item_count(),
258 i = choice + 1;
260 if (i != choice) {
262 item_set(scroll + choice);
263 print_item(list, choice, FALSE);
265 choice = i;
266 item_set(scroll + choice);
267 print_item(list, choice, TRUE);
285 item_set(scroll + choice);