There are several ways that you can leave Scheme: there are two Scheme procedures that you can call; there are several Edwin commands that you can execute; and there are are graphical-interface buttons (and their associated keyboard accelerators) that you can activate.
(exit)
which will halt the Scheme system, after first requesting confirmation. Any information that was in the environment is lost, so this should not be done lightly.
The second procedure suspends Scheme; when this is done you may later restart where you left off. Unfortunately this is not possible in all operating systems; currently it works under unix versions that support job control (i.e. all of the unix versions for which we distribute Scheme). To suspend Scheme, evaluate
(quit)
If your system supports suspension, this will cause Scheme to stop, and
you will be returned to the shell. Scheme remains stopped, and can be
continued using the job-control commands of your shell. If your system
doesn't support suspension, this procedure does nothing. (Calling the
quit
procedure is analogous to typing C-z, but it allows
Scheme to respond by typing a prompt when it is unsuspended.)
save-buffers-kill-scheme
, normally bound to C-x C-c, and
suspend-scheme
, normally bound to C-x C-z. These two
commands correspond to the procedures exit
and quit
,
respectively.
Under OS/2, there are two distinct ways to close the console window. The first is to use any of the usual window-closing methods, such as the Close system-menu item or double-clicking on the system-menu icon. When this is done, you will be presented with a dialog that gives you the option to close the window with or without termating Scheme. The second way is to select the Exit item from the File menu, which terminates Scheme immediately with no dialog.