Lines Matching defs:pager
1229 * then fork the pager and wait for the user to close it.
1259 /* Once in the foreground, activate the pager. */
1267 /* Wait for the pager to stop or exit. */
1291 const char *pager;
1303 pager = getenv("MANPAGER");
1304 if (pager == NULL || *pager == '\0')
1305 pager = getenv("PAGER");
1306 if (pager == NULL || *pager == '\0')
1307 pager = BINM_PAGER;
1310 * Parse the pager command into words.
1315 while (*pager != '\0' && argc + 5 < MAX_PAGER_ARGS) {
1316 wordlen = strcspn(pager, " ");
1317 argv[argc++] = mandoc_strndup(pager, wordlen);
1318 pager += wordlen;
1319 while (*pager == ' ')
1320 pager++;
1374 * The child process becomes the pager.