Command Line Editing

Command line editing supporting Emacs-like commands and IBM PC arrow keys is provided in the console-based executable. The following commands are available:

erase previous char
erase next char
kill line
forward char
backward char
begin of line
end of line
previous line
next line
insert space
forward search
reverse search
view history
input next char blindly
kill to end of line

Options may be specified in the file %HOME%\spcmd.ini as:

     Option Value

on separate lines. Recognized options are:

Value is the number of lines in the history buffer. 1-100 is accepted; the default is 30.
Value is either 0 (don't save or restore history buffer) or 1 (save history buffer in %HOME%\spcmd.hst on exit, restore history from the same file on start up.

The command line editing is switched off by giving the option -nocmd when starting SICStus. Command line editing will be automatically turned off if SICStus is run with piped input (e.g. from Emacs).