• Home
  • Raw
  • Download

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

2  * 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 "--------\n"
28 "Features can either be built-in, modularized, or ignored. Parameters\n"
35 " - - are selected by other feature,\n"
42 "through the available options (i.e. Y->N->M->Y).\n"
47 "----------\n"
48 "o Use the Up/Down arrow keys (cursor keys) to highlight the item you\n"
50 " Submenus are designated by \"--->\", empty ones by \"----\".\n"
54 " through all visible items which use that hotkey.\n"
56 " You may also use the <PAGE UP> and <PAGE DOWN> keys to scroll\n"
59 "o To exit a menu use the cursor keys to highlight the <Exit> button\n"
69 "o To get help with an item, use the cursor keys to highlight <Help>\n"
78 "-----------\n"
79 "o Use the cursor keys to select the option you wish to set and press\n"
85 "o To see available help for the item, use the cursor keys to highlight\n"
95 "-----------\n"
100 "o For help, use the <TAB> or cursor keys to highlight the help option\n"
105 "--------\n"
106 "o Use the cursor keys to scroll up/down/left/right. The VI editor\n"
114 "-----------------------------\n"
115 "Menuconfig supports the use of alternate configuration files for\n"
120 "a file of your choosing. Use the <Load> button to load a previously\n"
123 "Even if you don't use alternate configuration files, but you find\n"
125 "settings, you may use the <Load> button to restore your previously\n"
129 "-----------------\n"
130 "If you use Menuconfig in an XTERM window, make sure you have your\n"
147 "------------------------------\n"
162 "--------------------------------\n"
164 "MENUCONFIG_COLOR. To select a theme use:\n"
176 "<Enter> selects submenus ---> (or empty submenus ----). "
180 "Legend: [*] built-in [ ] excluded <M> module < > module capable",
182 "Use the arrow keys to navigate this window or "
189 "Use the <TAB> key to move from the input field to the buttons below it.",
192 "Use the <TAB> key to move from the input field to the buttons below it.",
195 "Use the <TAB> key to move from the input field to the buttons below it.",
223 "and use the current configuration as an alternate to whatever\n"
234 "-----------------------------------------------------------------\n"
239 " -> Bus options (PCI, PCMCIA, EISA, ISA)\n"
240 " -> PCI support (PCI [=y])\n"
241 "(1) -> PCI access mode (<choice> [=y])\n"
246 "-----------------------------------------------------------------\n"
258 " selectable menu item - and the current value is displayed inside\n"
302 "%s - %s", config_filename, rootmenu.prompt->text); in set_config_filename()
304 menu_backtitle[sizeof(menu_backtitle)-1] = '\0'; in set_config_filename()
309 filename[sizeof(filename)-1] = '\0'; in set_config_filename()
325 tmp = pos->next; in set_subtitle()
331 if (sp->text) { in set_subtitle()
333 pos->next = xcalloc(1, sizeof(*pos)); in set_subtitle()
334 pos = pos->next; in set_subtitle()
338 pos->text = sp->text; in set_subtitle()
350 tmp = pos->next; in reset_subtitle()
369 list_for_each_entry(pos, data->head, entries) { in update_text()
370 if (pos->offset >= start && pos->offset < end) { in update_text()
374 int key = '0' + (pos->index % JUMP_NB) + 1; in update_text()
377 data->keys[k] = key; in update_text()
378 data->targets[k] = pos->target; in update_text()
384 memcpy(buf + pos->offset, header, sizeof(header) - 1); in update_text()
387 data->keys[k] = 0; in update_text()
411 case 0: in search_conf()
413 case 1: in search_conf()
452 conf(targets[i]->parent, targets[i]); in search_conf()
485 sym = menu->sym; in build_conf()
486 prop = menu->prompt; in build_conf()
490 switch (prop->type) { in build_conf()
491 case P_MENU: in build_conf()
495 menu->data ? "-->" : "++>", in build_conf()
500 menu_is_empty(menu) ? "----" : "--->"); in build_conf()
503 if (single_menu_mode && menu->data) in build_conf()
506 case P_COMMENT: in build_conf()
517 item_make("---%*c%s", indent + 1, ' ', prompt); in build_conf()
533 for (child = menu->list; child; child = child->next) { in build_conf()
534 if (menu_is_visible(child) && child->sym == def_sym) in build_conf()
541 case S_BOOLEAN: in build_conf()
544 case S_TRISTATE: in build_conf()
546 case yes: ch = '*'; break; in build_conf()
547 case mod: ch = 'M'; break; in build_conf()
565 item_add_str(" --->"); in build_conf()
566 if (def_menu->list) { in build_conf()
569 indent -= 2; in build_conf()
576 item_make("---%*c%s", indent + 1, ' ', menu_get_prompt(menu)); in build_conf()
589 case S_BOOLEAN: in build_conf()
593 item_make("-%c-", val == no ? ' ' : '*'); in build_conf()
597 case S_TRISTATE: in build_conf()
599 case yes: ch = '*'; break; in build_conf()
600 case mod: ch = 'M'; break; in build_conf()
604 if (sym->rev_dep.tri == mod) in build_conf()
609 item_make("-%c-", ch); in build_conf()
616 tmp = indent - tmp + 4; in build_conf()
630 if (menu->prompt->type == P_MENU) { in build_conf()
631 item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->"); in build_conf()
638 for (child = menu->list; child; child = child->next) in build_conf()
640 indent -= doint; in build_conf()
669 if (res == 1 || res == KEY_ESC || res == -ERRDISPLAYTOOSMALL) in conf()
680 sym = submenu->sym; in conf()
685 case 0: in conf()
687 case 'm': in conf()
689 submenu->data = (void *) (long) !submenu->data; in conf()
693 case 't': in conf()
696 else if (submenu->prompt->type == P_MENU) in conf()
699 case 's': in conf()
704 case 2: in conf()
712 case 3: in conf()
716 case 4: in conf()
720 case 5: in conf()
728 case 6: in conf()
732 case 7: in conf()
736 case 8: in conf()
742 case 9: in conf()
745 case 10: in conf()
788 help.max_width = getmaxx(stdscr) - 10; in show_help()
801 active = sym_get_choice_value(menu->sym); in conf_choice()
808 for (child = menu->list; child; child = child->next) { in conf_choice()
811 if (child->sym) in conf_choice()
818 if (child->sym == active) in conf_choice()
820 if (child->sym == sym_get_choice_value(menu->sym)) in conf_choice()
831 case 0: in conf_choice()
834 if (!child->sym) in conf_choice()
837 sym_set_tristate_value(child->sym, yes); in conf_choice()
840 case 1: in conf_choice()
844 active = child->sym; in conf_choice()
848 case KEY_ESC: in conf_choice()
850 case -ERRDISPLAYTOOSMALL: in conf_choice()
864 switch (sym_get_type(menu->sym)) { in conf_string()
865 case S_INT: in conf_string()
868 case S_HEX: in conf_string()
871 case S_STRING: in conf_string()
880 sym_get_string_value(menu->sym)); in conf_string()
882 case 0: in conf_string()
883 if (sym_set_string_value(menu->sym, dialog_input_result)) in conf_string()
887 case 1: in conf_string()
890 case KEY_ESC: in conf_string()
905 case 0: in conf_load()
915 case 1: in conf_load()
918 case KEY_ESC: in conf_load()
932 case 0: in conf_save()
941 case 1: in conf_save()
944 case KEY_ESC: in conf_save()
963 res = -1; in handle_exit()
968 case 0: in handle_exit()
978 case -1: in handle_exit()
1010 if (ac > 1 && strcmp(av[1], "-s") == 0) { in main()