Commands
Each line that you enter in response to the Hugs prompt is
treated as a command to the interpreter. For example, when you
enter an expression into Hugs, it is treated as
a command to evaluate that expression, and
to display the result.
There are two commands that are particularly worth remembering:
- :q exits the interpreter.
On most systems, you can also terminate Hugs by typing the
end-of-file character (control-Z, on a DOS machine, usually control-D on
a Unix system).
- :? prints a list of
all the commands, which can be useful if you forget the name of
the command that you want to use.
Like most other commands in Hugs, these commands both start with
a colon, :.
Note that the interrupt key (control-C or
control-Break on most systems) can be used to abandon the process
of compiling files or evaluating
expressions. When the interrupt is detected, Hugs prints
{Interrupted!} and returns to the prompt so that further
commands can be entered.