Tool types and Shell parameters


Up

Both MPMorph and MPRender can be run from the Shell or the Workbench. Most parameters can be edited using the Settings menu.

Parameters can be supplied, normally either on the Shell command line, as Icon Tool Types on the Project, MPMorph or MPRender Icon, or in a settings file.

The format of settings files is a text file with lines in the format:

Settingstype=settingsvalue

Blank lines or lines starting with a ; (semi-colon) are treated as comments. Any settings supplied on the Shell command line or as an Icon Tool Type override values specified in this file. Parameters on the Project Icon override parameters on the Tool Icon.

Note: All the Project Icon tool types are used if the project is run with a default tool or by double clicking a tool, some are not used if the project is selected using a file requester, if the Tool was run from the Shell then file requester selected project tool types are ignored. Also some settings can not be changed on open projects,

The Settings file name used is first file found from:

1) The name supplied in the SETTINGS= parameter on the project.
2) The name supplied in the SETTINGS= parameter on the tool.
3) MPMorph.prefs
   in the project directory for the workbench,
   the current directory from the Shell.
4) MPMorph.prefs
   in the directory MPMorph was loaded from.
5) ENV:MPMorph/MPMorph.prefs

Unless KEEPSETTINGS is set to NO current settings are saved in ENV:MPMorph/MPMorph.prefs when MPMorph is quit. Settings can be saved and loaded from the Settings menu.

The following parameters can be supplied:

  • CREATEICONS
  • CREATEICONSP
  • PUBSCREEN
  • PORTNAME
  • CUSTOMMODE
  • CUSTOMDEPTH
  • EGS
  • REQTOOLS
  • FILES
  • HELP
  • KEEPSETTINGS
  • SETTINGS
  • ZOOM
  • PREVIEW
  • USER2
  • USER3
  • USER4
  • USER5
  • USER6
  • USER7
  • USER8
  • USER9
  • RECENT1
  • RECENT2
  • RECENT3
  • RECENT4
  • RECENT5