package b0
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Software construction and deployment kit
Install
dune-project
Dependency
Authors
Maintainers
Sources
b0-0.0.5.tbz
sha512=00a6868b4dfa34565d0141b335622a81a0e8d5b9e3c6dfad025dabfa3df2db2a1302b492953bbbce30c3a4406c324fcec25250a00b38f6d18a69e15605e3b07e
doc/b0_b00_kit/B00_pager/index.html
Module B00_pagerSource
Pager interaction.
Environment variables
envs () describe the PAGER and TERM environment variable for cmdliner.
Paging
Source
val find :
?win_exe:bool ->
?search:B0_std.Fpath.t list ->
don't:bool ->
unit ->
(B0_std.Cmd.t option, string) Stdlib.resultfind ~search ~don't finds a suitable pager. This is (in order):
Ok Noneifdon'tistrueor if theTERMenvironment variable isdumbor undefined.Ok (Some pager)ifpageris a tool invocation parsed from thePAGERenvironment variable that can be found viaOs.Cmd.find_tool ?win_exe ?search.Ok (Some pager)if eitherlessormorecan be found (in that order) viaOs.Cmd.find_tool ?win_exe ?search.Ok Noneotherwise.
page_stdout pager setups the program so that if pager is Some cmd, the standard output of the program is redirected to a spawn of cmd with the following twists:
- If the environment variable
LESSis undefined in the current environment it is set toLESS=FRXfor the spawn ofcmd. - A
Stdlib.at_exitfunction is installed that flushesB0_std.Fmt.stdoutandStdlib.stdout, closesUnix.stdoutand waits upon thecmdspawn termination.
If pager is None this function has no effect.
page_files pager fs uses pager to page the files fs. If pager is:
None, each of thefsfiles is output on stdout in order separated by a file separator character (U+001C).Some cmd,cmdis run withfsas arguments. Iffsis empty does nothing.
Cli interaction
don't ~docs () is a --no-pager command line option to unconditionally request not use a pager. docs is the manual section where the option is documented, defaults to Cmdliner.Manpage.s_common_options.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page