Entering and leaving Logo

HC Overview Entering and leaving Logo
Introduction to Logo Commandline option -nogui

Entering and leaving Logo



The process to start Logo depends on your operating system:

Unix:	 Type the word aucblogo to the shell.
(The directory in which you've installed Logo must be in your path.)

Windows: Double-click on aucblogo.exe in the aucblogo folder.

To leave Logo, enter the command "bye".

Under Unix or DOS, if you include one or more filenames on the command line when starting Logo, those files will be loaded before the interpreter starts reading commands from your terminal. If you load a file that executes some program that includes a "bye" command, Logo will run that program and exit. You can therefore write standalone programs in Logo and run them with shell/batch scripts. To support this technique, Logo does not print its usual welcoming and parting messages if you give file arguments to the logo command.

If you type your interrupt character (see table below) Logo will stop what it's doing and return to toplevel, as if you did throw "TOPLEVEL. If you type your quit character Logo will pause as if you did pause.

toplevel    [Ctrl-Pause]

pause       [Pause]

If you have an environment variable called ALOGOLIB whose value is the name of a directory, then Logo will use that directory instead of the default library. If you invoke a procedure that has not been defined, Logo first looks for a file in the current directory named proc.lg where "proc" is the procedure name in lower case letters. If such a file exists, Logo loads that file. If the missing procedure is still undefined, or if there is no such file, Logo then looks in the library directory for a file named proc.lg and, if it exists, loads it. If neither file contains a definition for the procedure, then Logo signals an error. Several procedures that are primitive in most versions of Logo are included in the default library, so if you use a different library you may want to include some or all of the default library in it.

Introduction to Logo Commandline option -nogui