Lines Matching +full:long +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 #include "mnconf-common.h"
31 "--------\n"
33 "Features can either be built-in, modularized, or ignored. Parameters\n"
40 " - - are selected by other feature,\n"
45 "keys and press <Y> to build it in, <M> to make it a module or\n"
46 "<N> to remove it. You may also press the <Space Bar> to cycle\n"
47 "through the available options (i.e. Y->N->M->Y).\n"
52 "----------\n"
54 " wish to change or the submenu you wish to select and press <Enter>.\n"
55 " Submenus are designated by \"--->\", empty ones by \"----\".\n"
57 " Shortcut: Press the option's highlighted letter (hotkey).\n"
65 " and press <ENTER>.\n"
67 " Shortcut: Press <ESC><ESC> or <E> or <X> if there is no hotkey\n"
68 " using those letters. You may press a single <ESC>, but\n"
75 " and press <ENTER>.\n"
77 " Shortcut: Press <H> or <?>.\n"
79 "o To toggle the display of hidden options, press <Z>.\n"
83 "-----------\n"
84 "o Use the cursor keys to select the option you wish to set and press\n"
87 " Shortcut: Press the first letter of the option you wish to set then\n"
88 " press <S> or <SPACE BAR>.\n"
91 " <Help> and Press <ENTER>.\n"
93 " Shortcut: Press <H> or <?>.\n"
100 "-----------\n"
101 "o Enter the requested information and press <ENTER>\n"
106 " and press <ENTER>. You can try <TAB><H> as well.\n"
110 "--------\n"
115 "o Press <E>, <X>, <q>, <Enter> or <Esc><Esc> to exit.\n"
119 "-----------------------------\n"
134 "-----------------\n"
152 "------------------------------\n"
168 "-------\n"
169 "Pressing the forward-slash (/) anywhere brings up a search dialog box.\n"
173 "--------------------------------\n"
187 "<Enter> selects submenus ---> (or empty submenus ----). "
190 "Press <Esc><Esc> to exit, <?> for Help, </> for Search. "
191 "Legend: [*] built-in [ ] excluded <M> module < > module capable",
194 "press the hotkey of the item you wish to select "
196 "Press <?> for additional information about this option.",
245 "-----------------------------------------------------------------\n"
250 " -> Bus options (PCI, PCMCIA, EISA, ISA)\n"
251 " -> PCI support (PCI [=y])\n"
252 "(1) -> PCI access mode (<choice> [=y])\n"
257 "-----------------------------------------------------------------\n"
269 " selectable menu item - and the current value is displayed inside\n"
271 " Press the key in the (#) prefix to jump directly to that\n"
301 snprintf(menu_backtitle, sizeof(menu_backtitle), "%s - %s", in set_config_filename()
302 config_filename, rootmenu.prompt->text); in set_config_filename()
321 tmp = pos->next; in set_subtitle()
327 if (sp->text) { in set_subtitle()
329 pos->next = xcalloc(1, sizeof(*pos)); in set_subtitle()
330 pos = pos->next; in set_subtitle()
334 pos->text = sp->text; in set_subtitle()
346 tmp = pos->next; in reset_subtitle()
377 help.max_width = getmaxx(stdscr) - 10; in show_help()
442 conf(data.target->parent, data.target); in search_conf()
475 sym = menu->sym; in build_conf()
476 prop = menu->prompt; in build_conf()
480 switch (prop->type) { in build_conf()
485 menu->data ? "-->" : "++>", in build_conf()
490 menu_is_empty(menu) ? "----" : "--->"); in build_conf()
493 if (single_menu_mode && menu->data) in build_conf()
507 item_make("---%*c%s", indent + 1, ' ', prompt); in build_conf()
523 for (child = menu->list; child; child = child->next) { in build_conf()
524 if (menu_is_visible(child) && child->sym == def_sym) in build_conf()
534 item_add_str(" (%s) --->", menu_get_prompt(def_menu)); in build_conf()
538 item_make("---%*c%s", indent + 1, ' ', menu_get_prompt(menu)); in build_conf()
550 item_make("-%c-", val == no ? ' ' : '*'); in build_conf()
561 if (sym->rev_dep.tri == mod) in build_conf()
566 item_make("-%c-", ch); in build_conf()
573 tmp = indent - tmp + 4; in build_conf()
586 if (menu->prompt->type == P_MENU) { in build_conf()
587 item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->"); in build_conf()
594 for (child = menu->list; child; child = child->next) in build_conf()
596 indent -= doint; in build_conf()
612 for (child = menu->list; child; child = child->next) { in conf_choice()
615 if (child->sym) in conf_choice()
622 if (child->sym == active) in conf_choice()
624 if (child->sym == sym_calc_choice(menu)) in conf_choice()
638 if (!child->sym) in conf_choice()
641 choice_set_value(menu, child->sym); in conf_choice()
648 active = child->sym; in conf_choice()
654 case -ERRDISPLAYTOOSMALL: in conf_choice()
668 switch (sym_get_type(menu->sym)) { in conf_string()
684 sym_get_string_value(menu->sym)); in conf_string()
687 if (sym_set_string_value(menu->sym, dialog_input_result)) in conf_string()
780 if (res == 1 || res == KEY_ESC || res == -ERRDISPLAYTOOSMALL) in conf()
791 sym = submenu->sym; in conf()
800 submenu->data = (void *) (long) !submenu->data; in conf()
807 else if (submenu->prompt->type == P_MENU) in conf()
885 "(Press <ESC><ESC> to continue kernel configuration.)", in handle_exit()
888 res = -1; in handle_exit()
903 case -1: in handle_exit()
937 if (ac > 1 && strcmp(av[1], "-s") == 0) { in main()