Lines Matching refs:page
33 static const char *page;
64 page = buf; /* page is pointer to start of page to be displayed */
121 /* Print first page of text */
135 case 'g': /* First page */
139 page = buf;
144 case 'G': /* Last page */
149 page = buf + strlen(buf);
163 * should still be updated, and 'page' should
164 * point to start of next page. This is done
174 /* print first line of page */
178 /* Called to update 'end_reached' and 'page' */
191 case 'B': /* Previous page */
215 case KEY_NPAGE: /* Next page */
235 /* Reprint current page to scroll horizontally */
246 /* Reprint current page to scroll horizontally */
269 * 'page' will be updated to point to the desired line in 'buf'.
278 if (*page == '\0') {
284 if (page == buf) {
288 page--;
290 if (page == buf) {
294 page--;
295 } while (*page != '\n');
296 page++;
301 * Print a new page of text. Called by dialog_textbox().
347 * 'page' should point to start of current line before calling, and will be
356 while (*page != '\n') {
357 if (*page == '\0') {
363 line[i++] = *(page++);
368 page++;
374 page++; /* move pass '\n' */
388 percent = (page - buf) * 100 / strlen(buf);