* Print a new page of text. */
| 99 | * Print a new page of text. |
| 100 | */ |
| 101 | static void print_page(WINDOW *win, int height, int width) |
| 102 | { |
| 103 | int i, passed_end = 0; |
| 104 | |
| 105 | page_length = 0; |
| 106 | for (i = 0; i < height; i++) { |
| 107 | print_line(win, i, width); |
| 108 | if (!passed_end) |
| 109 | page_length++; |
| 110 | if (end_reached && !passed_end) |
| 111 | passed_end = 1; |
| 112 | } |
| 113 | wnoutrefresh(win); |
| 114 | } |
| 115 | |
| 116 | /* |
| 117 | * Print current position |
no test coverage detected