MCPcopy Create free account
hub / github.com/coreboot/coreboot / print_function_line

Function print_function_line

util/kconfig/nconf.c:371–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369};
370
371static void print_function_line(void)
372{
373 int i;
374 int offset = 1;
375 const int skip = 1;
376 int lines = getmaxy(stdscr);
377
378 for (i = 0; i < function_keys_num; i++) {
379 wattrset(main_window, attr_function_highlight);
380 mvwprintw(main_window, lines-3, offset,
381 "%s",
382 function_keys[i].key_str);
383 wattrset(main_window, attr_function_text);
384 offset += strlen(function_keys[i].key_str);
385 mvwprintw(main_window, lines-3,
386 offset, "%s",
387 function_keys[i].func);
388 offset += strlen(function_keys[i].func) + skip;
389 }
390 wattrset(main_window, attr_normal);
391}
392
393/* help */
394static void handle_f1(int *key, struct menu *current_item)

Callers 1

show_menuFunction · 0.85

Calls 4

getmaxyFunction · 0.85
wattrsetFunction · 0.85
strlenFunction · 0.85
mvwprintwFunction · 0.50

Tested by

no test coverage detected