Lines Matching +full:key +full:- +full:press

1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
5 * Introduced single menu mode (show all sub-menus in one large tree).
6 * 2002-11-06 Petr Baudis <pasky@ucw.cz>
27 "--------\n"
29 "Features can either be built-in, modularized, or ignored. Parameters\n"
36 " - - are selected by other feature,\n"
41 "keys and press <Y> to build it in, <M> to make it a module or\n"
42 "<N> to remove it. You may also press the <Space Bar> to cycle\n"
43 "through the available options (i.e. Y->N->M->Y).\n"
48 "----------\n"
50 " wish to change or the submenu you wish to select and press <Enter>.\n"
51 " Submenus are designated by \"--->\", empty ones by \"----\".\n"
53 " Shortcut: Press the option's highlighted letter (hotkey).\n"
61 " and press <ENTER>.\n"
63 " Shortcut: Press <ESC><ESC> or <E> or <X> if there is no hotkey\n"
64 " using those letters. You may press a single <ESC>, but\n"
71 " and press <ENTER>.\n"
73 " Shortcut: Press <H> or <?>.\n"
75 "o To toggle the display of hidden options, press <Z>.\n"
79 "-----------\n"
80 "o Use the cursor keys to select the option you wish to set and press\n"
83 " Shortcut: Press the first letter of the option you wish to set then\n"
84 " press <S> or <SPACE BAR>.\n"
87 " <Help> and Press <ENTER>.\n"
89 " Shortcut: Press <H> or <?>.\n"
96 "-----------\n"
97 "o Enter the requested information and press <ENTER>\n"
102 " and press <ENTER>. You can try <TAB><H> as well.\n"
106 "--------\n"
111 "o Press <E>, <X>, <q>, <Enter> or <Esc><Esc> to exit.\n"
115 "-----------------------------\n"
130 "-----------------\n"
148 "------------------------------\n"
164 "-------\n"
165 "Pressing the forward-slash (/) anywhere brings up a search dialog box.\n"
169 "--------------------------------\n"
183 "<Enter> selects submenus ---> (or empty submenus ----). "
186 "Press <Esc><Esc> to exit, <?> for Help, </> for Search. "
187 "Legend: [*] built-in [ ] excluded <M> module < > module capable",
190 "press the hotkey of the item you wish to select "
192 "Press <?> for additional information about this option.",
196 "Use the <TAB> key to move from the input field to the buttons below it.",
199 "Use the <TAB> key to move from the input field to the buttons below it.",
202 "Use the <TAB> key to move from the input field to the buttons below it.",
241 "-----------------------------------------------------------------\n"
246 " -> Bus options (PCI, PCMCIA, EISA, ISA)\n"
247 " -> PCI support (PCI [=y])\n"
248 "(1) -> PCI access mode (<choice> [=y])\n"
253 "-----------------------------------------------------------------\n"
265 " selectable menu item - and the current value is displayed inside\n"
267 " Press the key in the (#) prefix to jump directly to that\n"
298 snprintf(menu_backtitle, sizeof(menu_backtitle), "%s - %s", in set_config_filename()
299 config_filename, rootmenu.prompt->text); in set_config_filename()
318 tmp = pos->next; in set_subtitle()
324 if (sp->text) { in set_subtitle()
326 pos->next = xcalloc(1, sizeof(*pos)); in set_subtitle()
327 pos = pos->next; in set_subtitle()
331 pos->text = sp->text; in set_subtitle()
343 tmp = pos->next; in reset_subtitle()
374 help.max_width = getmaxx(stdscr) - 10; in show_help()
386 static int next_jump_key(int key) in next_jump_key() argument
388 if (key < '1' || key > '9') in next_jump_key()
391 key++; in next_jump_key()
393 if (key > '9') in next_jump_key()
394 key = '1'; in next_jump_key()
396 return key; in next_jump_key()
399 static int handle_search_keys(int key, size_t start, size_t end, void *_data) in handle_search_keys() argument
405 if (key < '1' || key > '9') in handle_search_keys()
408 list_for_each_entry(pos, data->head, entries) { in handle_search_keys()
411 if (pos->offset < start) in handle_search_keys()
414 if (pos->offset >= end) in handle_search_keys()
417 if (key == index) { in handle_search_keys()
418 data->target = pos->target; in handle_search_keys()
491 conf(data.target->parent, data.target); in search_conf()
524 sym = menu->sym; in build_conf()
525 prop = menu->prompt; in build_conf()
529 switch (prop->type) { in build_conf()
534 menu->data ? "-->" : "++>", in build_conf()
539 menu_is_empty(menu) ? "----" : "--->"); in build_conf()
542 if (single_menu_mode && menu->data) in build_conf()
556 item_make("---%*c%s", indent + 1, ' ', prompt); in build_conf()
572 for (child = menu->list; child; child = child->next) { in build_conf()
573 if (menu_is_visible(child) && child->sym == def_sym) in build_conf()
604 item_add_str(" --->"); in build_conf()
605 if (def_menu->list) { in build_conf()
608 indent -= 2; in build_conf()
615 item_make("---%*c%s", indent + 1, ' ', menu_get_prompt(menu)); in build_conf()
632 item_make("-%c-", val == no ? ' ' : '*'); in build_conf()
643 if (sym->rev_dep.tri == mod) in build_conf()
648 item_make("-%c-", ch); in build_conf()
655 tmp = indent - tmp + 4; in build_conf()
669 if (menu->prompt->type == P_MENU) { in build_conf()
670 item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->"); in build_conf()
677 for (child = menu->list; child; child = child->next) in build_conf()
679 indent -= doint; in build_conf()
688 active = sym_get_choice_value(menu->sym); in conf_choice()
695 for (child = menu->list; child; child = child->next) { in conf_choice()
698 if (child->sym) in conf_choice()
705 if (child->sym == active) in conf_choice()
707 if (child->sym == sym_get_choice_value(menu->sym)) in conf_choice()
721 if (!child->sym) in conf_choice()
724 sym_set_tristate_value(child->sym, yes); in conf_choice()
731 active = child->sym; in conf_choice()
737 case -ERRDISPLAYTOOSMALL: in conf_choice()
751 switch (sym_get_type(menu->sym)) { in conf_string()
767 sym_get_string_value(menu->sym)); in conf_string()
770 if (sym_set_string_value(menu->sym, dialog_input_result)) in conf_string()
863 if (res == 1 || res == KEY_ESC || res == -ERRDISPLAYTOOSMALL) in conf()
874 sym = submenu->sym; in conf()
883 submenu->data = (void *) (long) !submenu->data; in conf()
890 else if (submenu->prompt->type == P_MENU) in conf()
968 "(Press <ESC><ESC> to continue kernel configuration.)", in handle_exit()
971 res = -1; in handle_exit()
986 case -1: in handle_exit()
1018 if (ac > 1 && strcmp(av[1], "-s") == 0) { in main()