A MSWLogo startup file


A startup file is a file that will be loaded automatically when starting MSWLogo.

The procedures defined in this startup file provides an easy way for you to define pseudo-primitives, that is buried procedures you will not see in the MSWLogo editor but you can use in your programs. Just put some LGO files in a sub-directory of the MSWLogo installation directory - the sub-directory name has to be named `buried'. All these LGO files will be loaded at MSWLogo startup and the procedures and variables defined in these files will be buried. For example my colors.lgo file should be put there (this color management utility can add a hundred of definitions and even more if you like colors and foreign languages). The startup.lgo also provides an `user.dir' variable and will change the current directory to the value of this variable (if the directory exists).

Who should be interrested?

How to install?

  1. in the `Target' field of your MSWLogo shortcut add the following : -l startup.lgo the content of this field should thus be : c:\program files\MSWlogo\logo.exe -l startup.lgo (if MSWLogo has been installed in c:\program files\) By the way, the content of the `Start in' field has to be what it was when MSWLogo has been installed, that is : c:\program files\MSWlogo\
  2. Put the startup.lgo file in the MSWLogo directory
  3. make a sub-directory named `buried' under the MSWLogo directory
  4. put the colors.lgo file in the `buried' sub-directory and any LGO file you want
  5. Possibly, in the startup.lgo file, initialize the `user.dir' variable (look for `make "user.dir' in the startup.lgo file)
  6. to check the installation, start MSWLogo : you should see a colored tree on the screen and a `... startup file loaded' message in the text window. To see the colored tree, the colors.lgo file has to be in the `buried' sub-directory, else comment in the 2 calls to `colored.tree' in the startup.lgo file.