text.pager
- Display with pager ¶A convenience module to present long text nicely to the user.
{text.pager
}
A parameter containing a list of pager program and its arguments
(e.g. ("/usr/bin/less" "-M")
).
The program must take input from the standard input.
The default value is taken from the environment variable PAGER
if set, or either less
or more
if those programs are
available on the system. If none is found, #f
is set.
{text.pager
}
Display string by a pager subprocess specified by the parameter
pager-program
. The procedure returns when the subprocess exits.
If the terminal is not suitable for control
(e.g. TERM
is dumb
or emacs
), string is
simply display
ed without a pager.
If you’re running MinGW version of gosh
on mintty,
calling subprocess pager doesn’t work well, so the procedure
emulate the pager behavior (pager-program
is ignored).
{text.pager
}
Call thunk with its current output port to a string buffer,
then show the buffered output using display/pager
.