Next: Frequently Asked Questions Up: PLT DrScheme: Programming Environment Previous: Tools

# Using DrScheme Jr

DrScheme Jr is a lightweight, text-only programming shell that provides the functionality of DrScheme's interactions window. Under Windows, DrScheme Jr runs within an ``MS Dos'' shell. Under MacOS, DrScheme Jr uses a text shell that is embedded into MzScheme. Under Unix, DrScheme Jr runs within a terminal window.

DrScheme Jr's `restart` function serves the same purpose as DrScheme's Execute button. Evaluating `(restart)` resets the current interaction and clears all definitions. Evaluating `(restart "file.scm")` resets the current interaction and evaluates the program in `file.scm`.

Set DrScheme Jr's language through a command-line flag when starting DrScheme Jr. For example, to set the language to Beginning Student:

- Under Windows, run `"DrScheme Jr" -l "Beginning Student" -save` in a command shell in the plt directory.
- Under MacOS, double-click on DrScheme Jr while holding down the Command key. A dialog appears with a text box; type `-l "Beginning Student" -save` into the text box and click OK.
- Under Unix, run `plt/bin/drscheme-jr -l "Beginning Student" -save` in a terminal.

The `-save` flag (note that there are two dashes) saves the language selection to a configuration file so that DrScheme Jr starts with the same language next time. (Run DrScheme Jr with the `-help` flag to determine the name of the configuration file.)