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

Function print_function_line

scripts/config/nconf.c:374–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

show_menuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected