Lines Matching +full:button +full:- +full:enter
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"
53 " wish to change or the submenu you wish to select and press <Enter>.\n"
54 " Submenus are designated by \"--->\", empty ones by \"----\".\n"
63 "o To exit a menu use the cursor keys to highlight the <Exit> button\n"
64 " and press <ENTER>.\n"
74 " and press <ENTER>.\n"
82 "-----------\n"
90 " <Help> and Press <ENTER>.\n"
99 "-----------\n"
100 "o Enter the requested information and press <ENTER>\n"
105 " and press <ENTER>. You can try <TAB><H> as well.\n"
109 "--------\n"
114 "o Press <E>, <X>, <q>, <Enter> or <Esc><Esc> to exit.\n"
118 "-----------------------------\n"
123 "The <Save> button will let you save the current configuration to\n"
124 "a file of your choosing. Use the <Load> button to load a previously\n"
129 "settings, you may use the <Load> button to restore your previously\n"
133 "-----------------\n"
151 "------------------------------\n"
158 "<Enter> will then unroll the appropriate category, or enfold it if it\n"
167 "-------\n"
168 "Pressing the forward-slash (/) anywhere brings up a search dialog box.\n"
172 "--------------------------------\n"
186 "<Enter> selects submenus ---> (or empty submenus ----). "
190 "Legend: [*] built-in [ ] excluded <M> module < > module capable",
197 "Please enter a decimal value. "
201 "Please enter a hexadecimal value. "
204 "Please enter a string value. "
210 "Enter the name of the configuration file you wish to load. "
225 "Enter a filename to which this configuration should be saved "
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()
395 str_printf( &title, "Enter (sub)string or regexp to search for " 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()
484 menu->data ? "-->" : "++>", in build_conf()
489 menu_is_empty(menu) ? "----" : "--->"); in build_conf()
492 if (single_menu_mode && menu->data) 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()
549 item_make("-%c-", val == no ? ' ' : '*'); 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()
637 if (!child->sym) in conf_choice()
640 choice_set_value(menu, child->sym); in conf_choice()
647 active = child->sym; in conf_choice()
653 case -ERRDISPLAYTOOSMALL: in conf_choice()
667 switch (sym_get_type(menu->sym)) { in conf_string()
683 sym_get_string_value(menu->sym)); in conf_string()
686 if (sym_set_string_value(menu->sym, dialog_input_result)) in conf_string()
779 if (res == 1 || res == KEY_ESC || res == -ERRDISPLAYTOOSMALL) in conf()
790 sym = submenu->sym; in conf()
799 submenu->data = (void *) (long) !submenu->data; in conf()
806 else if (submenu->prompt->type == P_MENU) in conf()
887 res = -1; in handle_exit()
902 case -1: in handle_exit()
934 if (ac > 1 && strcmp(av[1], "-s") == 0) { in main()