Lines Matching defs:choice
31 static void print_item(WINDOW * win, int choice, int selected)
37 wmove(win, choice, 0);
41 wmove(win, choice, check_x);
47 mvwaddch(win, choice, item_x, item_str()[0]);
51 wmove(win, choice, check_x + 1);
59 static void print_arrows(WINDOW * win, int choice, int item_no, int scroll,
79 if ((height < item_no) && (scroll + choice < item_no - 1)) {
115 int key = 0, button = 0, choice = 0, scroll = 0, max_choice;
121 choice = item_n();
123 choice = item_n();
181 if (choice >= list_height) {
182 scroll = choice - list_height + 1;
183 choice -= scroll;
189 print_item(list, i, i == choice);
192 print_arrows(dialog, choice, item_count(), scroll,
213 if (!choice) {
228 print_arrows(dialog, choice, item_count(),
236 i = choice - 1;
238 if (choice == max_choice - 1) {
239 if (scroll + choice >= item_count() - 1)
256 print_arrows(dialog, choice, item_count(),
264 i = choice + 1;
266 if (i != choice) {
268 item_set(scroll + choice);
269 print_item(list, choice, FALSE);
271 choice = i;
272 item_set(scroll + choice);
273 print_item(list, choice, TRUE);
291 item_set(scroll + choice);