Lines Matching refs:page
21 static char *page;
57 page = buf; /* page is pointer to start of page to be displayed */
123 /* Print first page of text */
139 case 'g': /* First page */
143 page = buf;
149 case 'G': /* Last page */
154 page = buf + strlen(buf);
169 case 'B': /* Previous page */
189 case KEY_NPAGE: /* Next page */
210 /* Reprint current page to scroll horizontally */
221 /* Reprint current page to scroll horizontally */
253 while (s < page && (s = strchr(s, '\n'))) {
265 * 'page' will be updated to point to the desired line in 'buf'.
274 if (*page == '\0') {
280 if (page == buf) {
284 page--;
286 if (page == buf) {
290 page--;
291 } while (*page != '\n');
292 page++;
297 * Print a new page of text.
309 end = page;
311 update_text(buf, page - buf, end - buf, data);
353 * 'page' should point to start of current line before calling, and will be
362 while (*page != '\n') {
363 if (*page == '\0') {
367 line[i++] = *(page++);
372 page++;
378 page++; /* move past '\n' */
392 percent = (page - buf) * 100 / strlen(buf);