Lines Matching +full:use +full:- +full:case

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>
26 #include "mnconf-common.h"
30 "--------\n"
32 "Features can either be built-in, modularized, or ignored. Parameters\n"
39 " - - are selected by other feature,\n"
46 "through the available options (i.e. Y->N->M->Y).\n"
51 "----------\n"
52 "o Use the Up/Down arrow keys (cursor keys) to highlight the item you\n"
54 " Submenus are designated by \"--->\", empty ones by \"----\".\n"
58 " through all visible items which use that hotkey.\n"
60 " You may also use the <PAGE UP> and <PAGE DOWN> keys to scroll\n"
63 "o To exit a menu use the cursor keys to highlight the <Exit> button\n"
73 "o To get help with an item, use the cursor keys to highlight <Help>\n"
82 "-----------\n"
83 "o Use the cursor keys to select the option you wish to set and press\n"
89 "o To see available help for the item, use the cursor keys to highlight\n"
99 "-----------\n"
104 "o For help, use the <TAB> or cursor keys to highlight the help option\n"
109 "--------\n"
110 "o Use the cursor keys to scroll up/down/left/right. The VI editor\n"
118 "-----------------------------\n"
119 "Menuconfig supports the use of alternate configuration files for\n"
124 "a file of your choosing. Use the <Load> button to load a previously\n"
127 "Even if you don't use alternate configuration files, but you find\n"
129 "settings, you may use the <Load> button to restore your previously\n"
133 "-----------------\n"
134 "If you use Menuconfig in an XTERM window, make sure you have your\n"
151 "------------------------------\n"
167 "-------\n"
168 "Pressing the forward-slash (/) anywhere brings up a search dialog box.\n"
172 "--------------------------------\n"
174 "MENUCONFIG_COLOR. To select a theme use:\n"
186 "<Enter> selects submenus ---> (or empty submenus ----). "
190 "Legend: [*] built-in [ ] excluded <M> module < > module capable",
192 "Use the arrow keys to navigate this window or "
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.",
205 "Use the <TAB> key to move from the input field to the buttons below it.",
233 "and use the current configuration as an alternate to whatever\n"
244 "-----------------------------------------------------------------\n"
249 " -> Bus options (PCI, PCMCIA, EISA, ISA)\n"
250 " -> PCI support (PCI [=y])\n"
251 "(1) -> PCI access mode (<choice> [=y])\n"
256 "-----------------------------------------------------------------\n"
268 " selectable menu item - and the current value is displayed inside\n"
300 snprintf(menu_backtitle, sizeof(menu_backtitle), "%s - %s", in set_config_filename()
301 config_filename, rootmenu.prompt->text); in set_config_filename()
320 tmp = pos->next; in set_subtitle()
326 if (sp->text) { in set_subtitle()
328 pos->next = xcalloc(1, sizeof(*pos)); in set_subtitle()
329 pos = pos->next; in set_subtitle()
333 pos->text = sp->text; in set_subtitle()
345 tmp = pos->next; in reset_subtitle()
376 help.max_width = getmaxx(stdscr) - 10; in show_help()
404 case 0: in search_conf()
406 case 1: in search_conf()
441 conf(data.target->parent, data.target); in search_conf()
474 sym = menu->sym; in build_conf()
475 prop = menu->prompt; in build_conf()
479 switch (prop->type) { in build_conf()
480 case P_MENU: in build_conf()
484 menu->data ? "-->" : "++>", in build_conf()
489 menu_is_empty(menu) ? "----" : "--->"); in build_conf()
492 if (single_menu_mode && menu->data) in build_conf()
495 case P_COMMENT: in build_conf()
506 item_make("---%*c%s", indent + 1, ' ', prompt); in build_conf()
522 for (child = menu->list; child; child = child->next) { in build_conf()
523 if (menu_is_visible(child) && child->sym == def_sym) in build_conf()
533 item_add_str(" (%s) --->", menu_get_prompt(def_menu)); in build_conf()
537 item_make("---%*c%s", indent + 1, ' ', menu_get_prompt(menu)); in build_conf()
545 case S_BOOLEAN: in build_conf()
549 item_make("-%c-", val == no ? ' ' : '*'); in build_conf()
553 case S_TRISTATE: in build_conf()
555 case yes: ch = '*'; break; in build_conf()
556 case mod: ch = 'M'; break; in build_conf()
560 if (sym->rev_dep.tri == mod) in build_conf()
565 item_make("-%c-", ch); in build_conf()
572 tmp = indent - tmp + 4; in build_conf()
585 if (menu->prompt->type == P_MENU) { in build_conf()
586 item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->"); in build_conf()
593 for (child = menu->list; child; child = child->next) in build_conf()
595 indent -= doint; in build_conf()
611 for (child = menu->list; child; child = child->next) { in conf_choice()
614 if (child->sym) in conf_choice()
621 if (child->sym == active) in conf_choice()
623 if (child->sym == sym_calc_choice(menu)) in conf_choice()
634 case 0: in conf_choice()
637 if (!child->sym) in conf_choice()
640 choice_set_value(menu, child->sym); in conf_choice()
643 case 1: in conf_choice()
647 active = child->sym; in conf_choice()
651 case KEY_ESC: in conf_choice()
653 case -ERRDISPLAYTOOSMALL: in conf_choice()
667 switch (sym_get_type(menu->sym)) { in conf_string()
668 case S_INT: in conf_string()
671 case S_HEX: in conf_string()
674 case S_STRING: in conf_string()
683 sym_get_string_value(menu->sym)); in conf_string()
685 case 0: in conf_string()
686 if (sym_set_string_value(menu->sym, dialog_input_result)) in conf_string()
690 case 1: in conf_string()
693 case KEY_ESC: in conf_string()
708 case 0: in conf_load()
718 case 1: in conf_load()
721 case KEY_ESC: in conf_load()
735 case 0: in conf_save()
744 case 1: in conf_save()
747 case KEY_ESC: in conf_save()
779 if (res == 1 || res == KEY_ESC || res == -ERRDISPLAYTOOSMALL) in conf()
790 sym = submenu->sym; in conf()
795 case 0: in conf()
797 case 'm': in conf()
799 submenu->data = (void *) (long) !submenu->data; in conf()
803 case 't': in conf()
806 else if (submenu->prompt->type == P_MENU) in conf()
809 case 's': in conf()
814 case 2: in conf()
822 case 3: in conf()
826 case 4: in conf()
830 case 5: in conf()
838 case 6: in conf()
842 case 7: in conf()
846 case 8: in conf()
852 case 9: in conf()
855 case 10: in conf()
887 res = -1; in handle_exit()
892 case 0: in handle_exit()
902 case -1: in handle_exit()
934 if (ac > 1 && strcmp(av[1], "-s") == 0) { in main()