Lines Matching +full:key +full:- +full:press
20 "------------\n"
27 " of <?> <h>, or if in a data entry window then press <F1>.\n"
31 "------------\n"
33 "build. Kernel features can either be built-in, modularized, or removed.\n"
40 " - - are selected by another feature\n"
46 "listed below and press <y> to build it in, <m> to make it a module or\n"
47 "<n> to remove it. You may press the <Space> key to cycle through the\n"
50 "A trailing \"--->\" designates a submenu, a trailing \"----\" an\n"
54 "----------------------------------------------------------------------\n"
66 "Start incremental, case-insensitive search for STRING in menu entries,\n"
76 "----------------------------------------------------------------------\n"
78 "Unless in a data entry window, key <1> may be used instead of <F1>,\n"
83 "-----------------------\n"
85 "and press <Space>.\n"
89 "----------\n"
90 "Enter the requested information and press <Enter>. Hexadecimal values\n"
95 "----------------------\n"
98 "Press any of <Enter> <Esc> <q> <F5> <F9> to exit.\n"
102 "-----------------------------\n"
104 "Press <F6> to save your current configuration. Press <F7> and enter\n"
109 "----------------------\n"
120 "----------------\n"
129 "leading \"++>\" and unfolded entries by a leading \"-->\".\n"
135 "Legend: [*] built-in [ ] excluded <M> module < > module capable.\n"
136 "Submenus are designated by a trailing \"--->\", empty ones by \"----\".\n"
144 "To search for menu entries press </>.\n"
148 "Press <1> instead of <F1>, <2> instead of <F2>, etc.\n"
149 "For verbose global help use key <1>.\n"
150 "For help related to the current menu entry press <?> or <h>.\n"),
152 "Legend: [*] built-in [ ] excluded <M> module < > module capable.\n"
153 "Submenus are designated by a trailing \"--->\", empty ones by \"----\".\n"
161 "To search for menu entries press </>.\n"
165 "For verbose global help press <F1>.\n"
166 "For help related to the current menu entry press <?> or <h>.\n"),
168 "Press <Up>, <Down>, <Home> or <End> to navigate a radiolist, select\n"
170 "For help related to the current entry press <?> or <h>.\n"
171 "For global help press <F1>.\n"),
175 "Press <Enter> to apply, <Esc> to cancel."),
178 "Press <Enter> to apply, <Esc> to cancel."),
181 "Press <Enter> to apply, <Esc> to cancel."),
215 "-----------------------------------------------------------------\n"
221 " -> Bus options (PCI, PCMCIA, EISA, ISA)\n"
222 " -> PCI support (PCI [ = y])\n"
223 " -> PCI access mode (<choice> [ = y])\n"
226 "-----------------------------------------------------------------\n"
289 typedef void (*function_key_handler_t)(int *key, struct menu *menu);
290 static void handle_f1(int *key, struct menu *current_item);
291 static void handle_f2(int *key, struct menu *current_item);
292 static void handle_f3(int *key, struct menu *current_item);
293 static void handle_f4(int *key, struct menu *current_item);
294 static void handle_f5(int *key, struct menu *current_item);
295 static void handle_f6(int *key, struct menu *current_item);
296 static void handle_f7(int *key, struct menu *current_item);
297 static void handle_f8(int *key, struct menu *current_item);
298 static void handle_f9(int *key, struct menu *current_item);
303 function_key key; member
312 .key = F_HELP,
318 .key = F_SYMBOL,
324 .key = F_INSTS,
330 .key = F_CONF,
336 .key = F_BACK,
342 .key = F_SAVE,
348 .key = F_LOAD,
354 .key = F_SEARCH,
360 .key = F_EXIT,
374 mvwprintw(main_window, lines-3, offset, in print_function_line()
379 mvwprintw(main_window, lines-3, in print_function_line()
388 static void handle_f1(int *key, struct menu *current_item) in handle_f1() argument
396 static void handle_f2(int *key, struct menu *current_item) in handle_f2() argument
403 static void handle_f3(int *key, struct menu *current_item) in handle_f3() argument
412 static void handle_f4(int *key, struct menu *current_item) in handle_f4() argument
428 static void handle_f5(int *key, struct menu *current_item) in handle_f5() argument
430 *key = KEY_LEFT; in handle_f5()
435 static void handle_f6(int *key, struct menu *current_item) in handle_f6() argument
442 static void handle_f7(int *key, struct menu *current_item) in handle_f7() argument
449 static void handle_f8(int *key, struct menu *current_item) in handle_f8() argument
456 static void handle_f9(int *key, struct menu *current_item) in handle_f9() argument
462 /* return != 0 to indicate the key was handles */
463 static int process_special_keys(int *key, struct menu *menu) in process_special_keys() argument
467 if (*key == KEY_RESIZE) { in process_special_keys()
473 if (*key == KEY_F(function_keys[i].key) || in process_special_keys()
474 *key == '0' + function_keys[i].key){ in process_special_keys()
475 function_keys[i].handler(key, menu); in process_special_keys()
496 /* return the index of the matched item, or -1 if no such item exists */
505 --match_start; in get_mext_match()
515 --index; in get_mext_match()
520 return -1; in get_mext_match()
529 if (items_num > MAX_MENU_ITEMS-1) in item_make()
568 int index = items_num-1; in item_add_str()
602 return mcur->tag; in item_tag()
619 return mcur->usrptr; in item_data()
635 "%s - %s", config_filename, rootmenu.prompt->text); in set_config_filename()
637 menu_backtitle[sizeof(menu_backtitle)-1] = '\0'; in set_config_filename()
641 filename[sizeof(filename)-1] = '\0'; in set_config_filename()
646 * -1 means go on doing what you were doing
663 return -1; in do_exit()
747 sym = menu->sym; in build_conf()
748 prop = menu->prompt; in build_conf()
753 ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; in build_conf()
761 menu->data ? "-->" : "++>", in build_conf()
767 menu_is_empty(menu) ? "----" : "--->"); in build_conf()
769 if (single_menu_mode && menu->data) in build_conf()
784 item_make(menu, ':', "---%*c%s", in build_conf()
800 for (child = menu->list; child; child = child->next) { in build_conf()
801 if (menu_is_visible(child) && child->sym == def_sym) in build_conf()
837 item_add_str(" --->"); in build_conf()
838 if (def_menu->list) { in build_conf()
841 indent -= 2; in build_conf()
849 "---%*c%s", indent + 1, in build_conf()
864 item_make(menu, 't', "-%c-", in build_conf()
880 if (sym->rev_dep.tri == mod) in build_conf()
887 item_make(menu, 't', "-%c-", ch); in build_conf()
893 tmp = indent - tmp + 4; in build_conf()
908 if (menu->prompt && menu->prompt->type == P_MENU) { in build_conf()
909 item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->"); in build_conf()
916 for (child = menu->list; child; child = child->next) in build_conf()
918 indent -= doint; in build_conf()
937 toprow = max(selected_index-mwin_max_lines/2, 0); in center_item()
938 if (toprow >= item_count(curses_menu)-mwin_max_lines) in center_item()
939 toprow = item_count(curses_menu)-mwin_max_lines; in center_item()
974 maxx = min(maxx, mwin_max_cols-2); in show_menu()
980 (mwin_max_cols-maxx)/2); in show_menu()
1017 /* Return 0 means I have handled the key. In such a case, ans should hold the
1018 * item to center, or -1 otherwise.
1019 * Else return -1 .
1021 static int do_match(int key, struct match_state *state, int *ans) in do_match() argument
1023 char c = (char) key; in do_match()
1025 *ans = -1; in do_match()
1026 if (key == '/' || (state->in_search && key == 27)) { in do_match()
1030 state->in_search = 1-state->in_search; in do_match()
1031 bzero(state->pattern, sizeof(state->pattern)); in do_match()
1032 state->match_direction = MATCH_TINKER_PATTERN_DOWN; in do_match()
1034 } else if (!state->in_search) in do_match()
1038 state->pattern[strlen(state->pattern)] = c; in do_match()
1039 state->pattern[strlen(state->pattern)] = '\0'; in do_match()
1040 adj_match_dir(&state->match_direction); in do_match()
1041 *ans = get_mext_match(state->pattern, in do_match()
1042 state->match_direction); in do_match()
1043 } else if (key == KEY_DOWN) { in do_match()
1044 state->match_direction = FIND_NEXT_MATCH_DOWN; in do_match()
1045 *ans = get_mext_match(state->pattern, in do_match()
1046 state->match_direction); in do_match()
1047 } else if (key == KEY_UP) { in do_match()
1048 state->match_direction = FIND_NEXT_MATCH_UP; in do_match()
1049 *ans = get_mext_match(state->pattern, in do_match()
1050 state->match_direction); in do_match()
1051 } else if (key == KEY_BACKSPACE || key == 127) { in do_match()
1052 state->pattern[strlen(state->pattern)-1] = '\0'; in do_match()
1053 adj_match_dir(&state->match_direction); in do_match()
1058 state->in_search = 0; in do_match()
1059 bzero(state->pattern, sizeof(state->pattern)); in do_match()
1063 return -1; in do_match()
1104 if (current_index != -1) in conf()
1159 sym = submenu->sym; in conf()
1173 submenu->data = in conf()
1174 (void *) (long) !submenu->data; in conf()
1182 else if (submenu->prompt && in conf()
1183 submenu->prompt->type == P_MENU) in conf()
1248 active = sym_get_choice_value(menu->sym); in conf_choice()
1253 for (i = 0, child = menu->list; child; child = child->next) { in conf_choice()
1257 if (child->sym == sym_get_choice_value(menu->sym)) in conf_choice()
1260 else if (child->sym) in conf_choice()
1267 if (child->sym == active){ in conf_choice()
1288 if (selected_index != -1) in conf_choice()
1332 if (!child || !menu_is_visible(child) || !child->sym) in conf_choice()
1338 sym_set_tristate_value(child->sym, yes); in conf_choice()
1343 active = child->sym; in conf_choice()
1359 switch (sym_get_type(menu->sym)) { in conf_string()
1375 sym_get_string_value(menu->sym), in conf_string()
1380 if (sym_set_string_value(menu->sym, in conf_string()
1469 main_window = newwin(lines-2, columns-2, 2, 1); in setup_windows()
1471 mwin_max_lines = lines-7; in setup_windows()
1472 mwin_max_cols = columns-6; in setup_windows()
1487 if (ac > 1 && strcmp(av[1], "-s") == 0) { in main()