| Did you know ... | Search Documentation: |
| help.pl -- Text based manual |
This module provides help/1 and apropos/1 that give help on a topic or searches the manual for relevant topics.
By default the result of help/1 is sent through a pager such as
less. This behaviour is controlled by the following:
help_pager, which can be set to one of the
following values:
PAGER
or otherwise tries to find the less program.program_name(Arg, ...). For
example, less('-r') would be the default. Note that the
program name can be an absolute path if single quotes are
used.
help is det
help(+What) is dettopics(s) to
give help for. Notations for What are:
?- help(append).
help/1 shows documentation from the manual as well as from loaded user code if the code is documented using PlDoc. To show only the documentatoion of the loaded predicate we may prefix predicate indicator with the module in which it is defined.
If an exact match fails this predicates attempts fuzzy matching and, when successful, display the results headed by a warning that the matches are based on fuzzy matching.
If possible, the results are sent through a pager such as the
less program. This behaviour is controlled by the Prolog flag
help_pager. See section level documentation.
If the terminal supports hyperlinks (see the Prolog flag
hyperlink_term), the manual references in the page are clickable.
In an Epilog window, clicking one quits the pager and runs help/1 on
the linked object.
show_html_hook(+HTML:string) is semidet[multifile]
apropos(+Query) is det
apropos(+Query, +Options) is detsection, cfunction, function,
iso_predicate, swi_builtin_predicate, library_predicate,
dcg and aliases chapter, arithmetic, c_function,
predicate, nonterminal and non_terminal. For example:
?- apropos(c:close). ?- apropos(f:min).
Only the best limit matches are shown. Options:
If the terminal supports hyperlinks (see the Prolog flag
hyperlink_term), the matches are clickable and so is the line that
reports there are more matches. In an Epilog window, clicking these
runs help/1 on the match or apropos/2 on the next page.
help_apropos(+Query, -Obj, -Summary, -Score) is nondet
help_text(+Predicate:term, -HelpText:string) is semidetName/Arity for which
documentation exists, HelpText is the documentation in textual format
(parsed from the HTML help).
epilog:tty_link_hook(+Terminal, +Link) is semidet[multifile]man: or apropos: link that was clicked in an Epilog
Terminal. We quit the pager if it is still showing the page the link
was clicked in and let the terminal run help/1 on the linked object or
continue the apropos/2 search.The following predicates are exported from this file while their implementation is defined in imported modules or non-module files loaded by this module.
help is det
help(+What) is dettopics(s) to
give help for. Notations for What are:
?- help(append).
help/1 shows documentation from the manual as well as from loaded user code if the code is documented using PlDoc. To show only the documentatoion of the loaded predicate we may prefix predicate indicator with the module in which it is defined.
If an exact match fails this predicates attempts fuzzy matching and, when successful, display the results headed by a warning that the matches are based on fuzzy matching.
If possible, the results are sent through a pager such as the
less program. This behaviour is controlled by the Prolog flag
help_pager. See section level documentation.
If the terminal supports hyperlinks (see the Prolog flag
hyperlink_term), the manual references in the page are clickable.
In an Epilog window, clicking one quits the pager and runs help/1 on
the linked object.
apropos(+Query) is det
apropos(+Query, +Options) is detsection, cfunction, function,
iso_predicate, swi_builtin_predicate, library_predicate,
dcg and aliases chapter, arithmetic, c_function,
predicate, nonterminal and non_terminal. For example:
?- apropos(c:close). ?- apropos(f:min).
Only the best limit matches are shown. Options:
If the terminal supports hyperlinks (see the Prolog flag
hyperlink_term), the matches are clickable and so is the line that
reports there are more matches. In an Epilog window, clicking these
runs help/1 on the match or apropos/2 on the next page.