B.7 Readline Interaction

The following predicates are available if SWI-Prolog is linked to the GNU readline library. This is by default the case on non-Windows installations and indicated by the Prolog flag readline.89plwin.exe uses its own history system and does not support these predicates. See also readline(3)

Read a readline initialisation file. Readline by default reads /.inputrc. This predicate may be used to read alternative readline initialisation files.
Add a line to the Control-P/Control-N history system of the readline library.
Write current history to FileName. Can be used from at_halt/1 to save the history.
Read history from FileName, appending to the current history.