prolog_history.pl -- Per-directory persistent commandline history
This module implements persistency of the commandline history over Prolog sessions on Prolog installations that are based on the GNU readline library (default for the development version on Unix systems).
The history is stored in the directory <config>/dir-history
. For
each directory for which it keeps the history, there is file whose name
is the base32 encoding of the directory path.
This file is normally loaded when Prolog is started if user_input
is a
terminal and the system supports history.
- prolog_history(+Action) is det
- Execute Action on the history. Action is one of
- enable
- Enable history. First loads history for the current directory. Loading the history is done at most once.
- disable
- Sets the Prolog flag
save_history
tofalse
, such that the history is not saved on halt.