Lines Matching refs:page
13 static const char *buf, *page;
18 * 'page' will be updated to point to the desired line in 'buf'.
27 if (*page == '\0') {
33 if (page == buf) {
37 page--;
39 if (page == buf) {
43 page--;
44 } while (*page != '\n');
45 page++;
51 * 'page' should point to start of current line before calling, and will be
60 while (*page != '\n') {
61 if (*page == '\0') {
65 line[i++] = *(page++);
70 page++;
76 page++; /* move past '\n' */
99 * Print a new page of text.
125 percent = (page - buf) * 100 / strlen(buf);
136 start = page - buf;
143 end = page - buf;
165 page = buf; /* page is pointer to start of page to be displayed */
231 /* Print first page of text */
246 case 'g': /* First page */
250 page = buf;
255 case 'G': /* Last page */
260 page = buf + strlen(buf);
273 case 'B': /* Previous page */
291 case KEY_NPAGE: /* Next page */
311 /* Reprint current page to scroll horizontally */
321 /* Reprint current page to scroll horizontally */
350 while (s < page && (s = strchr(s, '\n'))) {