| 142 | } |
| 143 | |
| 144 | static void center(int row, const char *str) |
| 145 | { |
| 146 | int j, len = strlen(str); |
| 147 | |
| 148 | wmove(stdscr, row, 0); |
| 149 | for (j = 0; j < SCREEN_X; j++) |
| 150 | waddch(stdscr, ' '); |
| 151 | |
| 152 | mvprintw(row, (SCREEN_X - len) / 2, str); |
| 153 | } |
| 154 | |
| 155 | /* FIXME: Currently unused. */ |
| 156 | #if 0 |