Lines Matching +full:long +full:- +full:press +full:- +full:mode

20 "------------\n"
27 " of <?> <h>, or if in a data entry window then press <F1>.\n"
31 "------------\n"
33 "build. Kernel features can either be built-in, modularized, or removed.\n"
40 " - - are selected by another feature\n"
46 "listed below and press <y> to build it in, <m> to make it a module or\n"
47 "<n> to remove it. You may press the <Space> key to cycle through the\n"
50 "A trailing \"--->\" designates a submenu, a trailing \"----\" an\n"
54 "----------------------------------------------------------------------\n"
66 "Start incremental, case-insensitive search for STRING in menu entries,\n"
72 "Exit menu search mode </> <Esc>\n"
76 "----------------------------------------------------------------------\n"
83 "-----------------------\n"
85 "and press <Space>.\n"
89 "----------\n"
90 "Enter the requested information and press <Enter>. Hexadecimal values\n"
95 "----------------------\n"
98 "Press any of <Enter> <Esc> <q> <F5> <F9> to exit.\n"
102 "-----------------------------\n"
104 "Press <F6> to save your current configuration. Press <F7> and enter\n"
109 "----------------------\n"
119 "Single menu mode\n"
120 "----------------\n"
129 "leading \"++>\" and unfolded entries by a leading \"-->\".\n"
131 "Note that this mode can eventually be a little more CPU expensive than\n"
132 "the default mode, especially with a larger number of unfolded submenus.\n"
135 "Legend: [*] built-in [ ] excluded <M> module < > module capable.\n"
136 "Submenus are designated by a trailing \"--->\", empty ones by \"----\".\n"
144 "To search for menu entries press </>.\n"
148 "Press <1> instead of <F1>, <2> instead of <F2>, etc.\n"
150 "For help related to the current menu entry press <?> or <h>.\n"),
152 "Legend: [*] built-in [ ] excluded <M> module < > module capable.\n"
153 "Submenus are designated by a trailing \"--->\", empty ones by \"----\".\n"
161 "To search for menu entries press </>.\n"
165 "For verbose global help press <F1>.\n"
166 "For help related to the current menu entry press <?> or <h>.\n"),
168 "Press <Up>, <Down>, <Home> or <End> to navigate a radiolist, select\n"
170 "For help related to the current entry press <?> or <h>.\n"
171 "For global help press <F1>.\n"),
175 "Press <Enter> to apply, <Esc> to cancel."),
178 "Press <Enter> to apply, <Esc> to cancel."),
181 "Press <Enter> to apply, <Esc> to cancel."),
215 "-----------------------------------------------------------------\n"
221 " -> Bus options (PCI, PCMCIA, EISA, ISA)\n"
222 " -> PCI support (PCI [ = y])\n"
223 " -> PCI access mode (<choice> [ = y])\n"
226 "-----------------------------------------------------------------\n"
374 mvwprintw(main_window, lines-3, offset, in print_function_line()
379 mvwprintw(main_window, lines-3, in print_function_line()
496 /* return the index of the matched item, or -1 if no such item exists */
505 --match_start; in get_mext_match()
515 --index; in get_mext_match()
520 return -1; in get_mext_match()
529 if (items_num > MAX_MENU_ITEMS-1) in item_make()
568 int index = items_num-1; in item_add_str()
602 return mcur->tag; in item_tag()
619 return mcur->usrptr; in item_data()
635 "%s - %s", config_filename, rootmenu.prompt->text); in set_config_filename()
637 menu_backtitle[sizeof(menu_backtitle)-1] = '\0'; in set_config_filename()
641 filename[sizeof(filename)-1] = '\0'; in set_config_filename()
646 * -1 means go on doing what you were doing
663 return -1; in do_exit()
747 sym = menu->sym; in build_conf()
748 prop = menu->prompt; in build_conf()
753 ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; in build_conf()
761 menu->data ? "-->" : "++>", in build_conf()
767 menu_is_empty(menu) ? "----" : "--->"); in build_conf()
769 if (single_menu_mode && menu->data) in build_conf()
784 item_make(menu, ':', "---%*c%s", in build_conf()
800 for (child = menu->list; child; child = child->next) { in build_conf()
801 if (menu_is_visible(child) && child->sym == def_sym) in build_conf()
837 item_add_str(" --->"); in build_conf()
838 if (def_menu->list) { in build_conf()
841 indent -= 2; in build_conf()
849 "---%*c%s", indent + 1, in build_conf()
864 item_make(menu, 't', "-%c-", in build_conf()
880 if (sym->rev_dep.tri == mod) in build_conf()
887 item_make(menu, 't', "-%c-", ch); in build_conf()
893 tmp = indent - tmp + 4; in build_conf()
908 if (menu->prompt && menu->prompt->type == P_MENU) { in build_conf()
909 item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->"); in build_conf()
916 for (child = menu->list; child; child = child->next) in build_conf()
918 indent -= doint; in build_conf()
937 toprow = max(selected_index-mwin_max_lines/2, 0); in center_item()
938 if (toprow >= item_count(curses_menu)-mwin_max_lines) in center_item()
939 toprow = item_count(curses_menu)-mwin_max_lines; in center_item()
974 maxx = min(maxx, mwin_max_cols-2); in show_menu()
980 (mwin_max_cols-maxx)/2); in show_menu()
1018 * item to center, or -1 otherwise.
1019 * Else return -1 .
1025 *ans = -1; in do_match()
1026 if (key == '/' || (state->in_search && key == 27)) { in do_match()
1030 state->in_search = 1-state->in_search; in do_match()
1031 bzero(state->pattern, sizeof(state->pattern)); in do_match()
1032 state->match_direction = MATCH_TINKER_PATTERN_DOWN; in do_match()
1034 } else if (!state->in_search) in do_match()
1038 state->pattern[strlen(state->pattern)] = c; in do_match()
1039 state->pattern[strlen(state->pattern)] = '\0'; in do_match()
1040 adj_match_dir(&state->match_direction); in do_match()
1041 *ans = get_mext_match(state->pattern, in do_match()
1042 state->match_direction); in do_match()
1044 state->match_direction = FIND_NEXT_MATCH_DOWN; in do_match()
1045 *ans = get_mext_match(state->pattern, in do_match()
1046 state->match_direction); in do_match()
1048 state->match_direction = FIND_NEXT_MATCH_UP; in do_match()
1049 *ans = get_mext_match(state->pattern, in do_match()
1050 state->match_direction); in do_match()
1052 state->pattern[strlen(state->pattern)-1] = '\0'; in do_match()
1053 adj_match_dir(&state->match_direction); in do_match()
1058 state->in_search = 0; in do_match()
1059 bzero(state->pattern, sizeof(state->pattern)); in do_match()
1063 return -1; in do_match()
1104 if (current_index != -1) in conf()
1159 sym = submenu->sym; in conf()
1173 submenu->data = in conf()
1174 (void *) (long) !submenu->data; in conf()
1182 else if (submenu->prompt && in conf()
1183 submenu->prompt->type == P_MENU) in conf()
1248 active = sym_get_choice_value(menu->sym); in conf_choice()
1253 for (i = 0, child = menu->list; child; child = child->next) { in conf_choice()
1257 if (child->sym == sym_get_choice_value(menu->sym)) in conf_choice()
1260 else if (child->sym) in conf_choice()
1267 if (child->sym == active){ in conf_choice()
1288 if (selected_index != -1) in conf_choice()
1332 if (!child || !menu_is_visible(child) || !child->sym) in conf_choice()
1338 sym_set_tristate_value(child->sym, yes); in conf_choice()
1343 active = child->sym; in conf_choice()
1359 switch (sym_get_type(menu->sym)) { in conf_string()
1375 sym_get_string_value(menu->sym), in conf_string()
1380 if (sym_set_string_value(menu->sym, in conf_string()
1469 main_window = newwin(lines-2, columns-2, 2, 1); in setup_windows()
1471 mwin_max_lines = lines-7; in setup_windows()
1472 mwin_max_cols = columns-6; in setup_windows()
1481 char *mode; in main() local
1487 if (ac > 1 && strcmp(av[1], "-s") == 0) { in main()
1495 mode = getenv("NCONFIG_MODE"); in main()
1496 if (mode) { in main()
1497 if (!strcasecmp(mode, "single_menu")) in main()