scroll up n lines (n may be negative) */
| 148 | |
| 149 | /* scroll up n lines (n may be negative) */ |
| 150 | static void do_scroll(WINDOW *win, int *scroll, int n) |
| 151 | { |
| 152 | /* Scroll menu up */ |
| 153 | scrollok(win, TRUE); |
| 154 | wscrl(win, n); |
| 155 | scrollok(win, FALSE); |
| 156 | *scroll = *scroll + n; |
| 157 | wrefresh(win); |
| 158 | } |
| 159 | |
| 160 | /* |
| 161 | * Display a menu for choosing among a number of options |