| 372 | }; |
| 373 | |
| 374 | static 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 */ |
| 397 | static void handle_f1(int *key, struct menu *current_item) |