/* Print a new page of text. Called by dialog_textbox().  */
static void print_page(WINDOW *win, int height, int width)
/* Print a new page of text. Called by dialog_textbox().  */
static void print_page(WINDOW *win, int height, int width)
{
	int i, passed_end = 0;
	page_length = 0;
	for (i = 0; i < height; i++) {
		print_line(win, i, width);
		if (!passed_end)
			page_length++;
		if (end_reached && !passed_end)
			passed_end = 1;
	}
	wnoutrefresh(win);
}