| 369 | }; |
| 370 | |
| 371 | static 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 */ |
| 394 | static void handle_f1(int *key, struct menu *current_item) |