Similar to read_variables/2, but allows for history substitutions.
history_read/6 is used by the top level to read the user's actions.
Show is the command the user should type to show the saved events.
Help is the command to get an overview of the capabilities.
Special is a list of commands that are not saved in the history.
Prompt is the first prompt given. Continuation prompts for more lines
are determined by prompt/2. A %w
in the prompt is substituted by
the event number. See section
for available
substitutions.
SWI-Prolog calls history_read/6 as follows:
read_history(h, '!h', [trace], '%w ?- ', Goal, Bindings)