Lines Matching +full:ch +full:- +full:func

1 // SPDX-License-Identifier: GPL-2.0
20 "------------\n"
31 "------------\n"
33 "build. Kernel features can either be built-in, modularized, or removed.\n"
40 " - - are selected by another feature\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"
76 "----------------------------------------------------------------------\n"
83 "-----------------------\n"
89 "----------\n"
95 "----------------------\n"
102 "-----------------------------\n"
109 "----------------------\n"
120 "----------------\n"
129 "leading \"++>\" and unfolded entries by a leading \"-->\".\n"
135 "Legend: [*] built-in [ ] excluded <M> module < > module capable.\n"
136 "Submenus are designated by a trailing \"--->\", empty ones by \"----\".\n"
152 "Legend: [*] built-in [ ] excluded <M> module < > module capable.\n"
153 "Submenus are designated by a trailing \"--->\", empty ones by \"----\".\n"
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"
302 const char *func; member
311 .func = "Help",
317 .func = "SymInfo",
323 .func = "Help 2",
329 .func = "ShowAll",
335 .func = "Back",
341 .func = "Save",
347 .func = "Load",
353 .func = "SymSearch",
359 .func = "Exit",
374 mvwprintw(main_window, lines-3, offset, in print_function_line()
379 mvwprintw(main_window, lines-3, in print_function_line()
381 function_keys[i].func); in print_function_line()
382 offset += strlen(function_keys[i].func) + skip; in print_function_line()
496 /* return the index of the matched item, or -1 if no such item exists */
504 return -1; in get_mext_match()
509 --match_start; in get_mext_match()
519 --index; in get_mext_match()
524 return -1; in get_mext_match()
533 if (items_num > MAX_MENU_ITEMS-1) in item_make()
572 int index = items_num-1; in item_add_str()
606 return mcur->tag; in item_tag()
623 return mcur->usrptr; in item_data()
636 snprintf(menu_backtitle, sizeof(menu_backtitle), "%s - %s", in set_config_filename()
637 config_filename, rootmenu.prompt->text); in set_config_filename()
643 * -1 means go on doing what you were doing
660 return -1; in do_exit()
740 char ch; in build_conf() local
745 sym = menu->sym; in build_conf()
746 prop = menu->prompt; in build_conf()
751 ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; in build_conf()
758 menu->data ? "-->" : "++>", in build_conf()
764 menu_is_empty(menu) ? "----" : "--->"); in build_conf()
766 if (single_menu_mode && menu->data) in build_conf()
781 item_make(menu, ':', "---%*c%s", in build_conf()
797 for (child = menu->list; child; child = child->next) { in build_conf()
798 if (menu_is_visible(child) && child->sym == def_sym) in build_conf()
812 ch = '*'; in build_conf()
815 ch = 'M'; in build_conf()
818 ch = ' '; in build_conf()
821 item_make(menu, 't', "<%c>", ch); in build_conf()
834 item_add_str(" --->"); in build_conf()
835 if (def_menu->list) { in build_conf()
838 indent -= 2; in build_conf()
846 "---%*c%s", indent + 1, in build_conf()
861 item_make(menu, 't', "-%c-", in build_conf()
867 ch = '*'; in build_conf()
870 ch = 'M'; in build_conf()
873 ch = ' '; in build_conf()
877 if (sym->rev_dep.tri == mod) in build_conf()
879 't', "{%c}", ch); in build_conf()
882 't', "<%c>", ch); in build_conf()
884 item_make(menu, 't', "-%c-", ch); in build_conf()
890 tmp = indent - tmp + 4; in build_conf()
905 if (menu->prompt && menu->prompt->type == P_MENU) { in build_conf()
906 item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->"); in build_conf()
913 for (child = menu->list; child; child = child->next) in build_conf()
915 indent -= doint; in build_conf()
934 toprow = max(selected_index-mwin_max_lines/2, 0); in center_item()
935 if (toprow >= item_count(curses_menu)-mwin_max_lines) in center_item()
936 toprow = item_count(curses_menu)-mwin_max_lines; in center_item()
970 maxx = min(maxx, mwin_max_cols-2); in show_menu()
976 (mwin_max_cols-maxx)/2); in show_menu()
1014 * item to center, or -1 otherwise.
1015 * Else return -1 .
1021 *ans = -1; in do_match()
1022 if (key == '/' || (state->in_search && key == 27)) { in do_match()
1026 state->in_search = 1-state->in_search; in do_match()
1027 bzero(state->pattern, sizeof(state->pattern)); in do_match()
1028 state->match_direction = MATCH_TINKER_PATTERN_DOWN; in do_match()
1030 } else if (!state->in_search) in do_match()
1034 state->pattern[strlen(state->pattern)] = c; in do_match()
1035 state->pattern[strlen(state->pattern)] = '\0'; in do_match()
1036 adj_match_dir(&state->match_direction); in do_match()
1037 *ans = get_mext_match(state->pattern, in do_match()
1038 state->match_direction); in do_match()
1040 state->match_direction = FIND_NEXT_MATCH_DOWN; 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_UP; in do_match()
1045 *ans = get_mext_match(state->pattern, in do_match()
1046 state->match_direction); in do_match()
1048 state->pattern[strlen(state->pattern)-1] = '\0'; in do_match()
1049 adj_match_dir(&state->match_direction); in do_match()
1054 state->in_search = 0; in do_match()
1055 bzero(state->pattern, sizeof(state->pattern)); in do_match()
1059 return -1; in do_match()
1098 if (current_index != -1) in conf()
1155 sym = submenu->sym; in conf()
1169 submenu->data = in conf()
1170 (void *) (long) !submenu->data; in conf()
1178 else if (submenu->prompt && in conf()
1179 submenu->prompt->type == P_MENU) in conf()
1241 active = sym_get_choice_value(menu->sym); in conf_choice()
1246 for (i = 0, child = menu->list; child; child = child->next) { in conf_choice()
1250 if (child->sym == sym_get_choice_value(menu->sym)) in conf_choice()
1253 else if (child->sym) in conf_choice()
1260 if (child->sym == active){ in conf_choice()
1281 if (selected_index != -1) in conf_choice()
1327 if (!child || !menu_is_visible(child) || !child->sym) in conf_choice()
1333 sym_set_tristate_value(child->sym, yes); in conf_choice()
1338 active = child->sym; in conf_choice()
1354 switch (sym_get_type(menu->sym)) { in conf_string()
1370 sym_get_string_value(menu->sym), in conf_string()
1375 if (sym_set_string_value(menu->sym, in conf_string()
1463 main_window = newwin(lines-2, columns-2, 2, 1); in setup_windows()
1465 mwin_max_lines = lines-7; in setup_windows()
1466 mwin_max_cols = columns-6; in setup_windows()
1477 if (ac > 1 && strcmp(av[1], "-s") == 0) { in main()