Previous: Inspect Commands, Up: REPL Commands


4.4.4.8 System Commands
— REPL Command: gc

Garbage collection.

— REPL Command: statistics

Display statistics.

— REPL Command: option [key value]

List/show/set options.

— REPL Command: quit

Quit this session.

Current REPL options include:

compile-options
The options used when compiling expressions entered at the REPL. See Compilation, for more on compilation options.
interp
Whether to interpret or compile expressions given at the REPL, if such a choice is available. Off by default (indicating compilation).
prompt
A customized REPL prompt. #f by default, indicating the default prompt.
value-history
Whether value history is on or not. See Value History.
on-error
What to do when an error happens. By default, debug, meaning to enter the debugger. Other values include backtrace, to show a backtrace without entering the debugger, or report, to simply show a short error printout.

Default values for REPL options may be set using repl-default-option-set! from (system repl common):

— Scheme Procedure: repl-set-default-option! key value

Set the default value of a REPL option. This function is particularly useful in a user's init file. See Init File.