## Magic version 7.3 Usage

> Basic usage:

> `magic` [`-noc`[`onsole`]] [`-w`[`rapper`]] [`-d` devType] [`-T` technology] [file]

> where:

> > `-noconsole`

> > > (Tcl version only) Uses the calling terminal for terminal-based command-line input. Otherwise, a Tk console window is used.

> > `-wrapper`

> > > (Tcl version only) Magic layout windows use the GUI wrapper, including cell and technology manager windows, layer toolbar, and file menu.

> > `-d` devType

> > > (all versions) Select the graphics interface at runtime. Specifying an invalid devType will result in a list of known types. The possible values of devType are determined at compile time, but the usual ones are `NULL` (no graphics), `X11`, and `OpenGL`. `X11` is the usual default.

> > `-T` technology

> > > (all versions) Select the appropriate technology (`.tech27`) file. At present (this is on the to-do list), magic cannot change technology after startup. So the technology file corresponding to the layout to be loaded must be supplied to the command line at startup. The default technology is `scmos`, which is included with the magic source distribution. The complete list of available technology files depends on what has been installed on the system (see the technology file page for details).

> > file

> > > (all versions) Load the layout (`.mag`) file file into the layout window on startup.

> Complete usage information:

> > `magic` [`-noc`[`onsole`]] [`-w`[`rapper`]] [`-nowindow`] [`-d` devType] [`-T` technology] [`-m` monType] [`-D`] [file]

> where the additional options not covered above are:

> > `-nowindow`

> > > (Tcl version only) Run without displaying an initial layout window. This is used mainly for GUI wrapper scripts which like to generate and handle their own windows.

> > `-m` monType

> > > (obscure) monType names a monitor type. This is used in the search for the colomap file name, which is designated `<tech>.<planes>.<mon>.cmap1`. The default is "`std`" (corresponding to colormap file "`mos.7bit.std.cmap1`". The only other monitor type for which colormaps exist in the distribution is "`mraster`". This provides a way for users to override the system color assignments.

> > `-D`

> > > (all versions) Run in Debug mode.

> Obsolete usage information:

> > `magic` [`-g` gPort] [`-i` tabletPort] [`-F` objFile saveFile] ...

> where the additional options not covered above are:

> > `-g` gPort

> > > (largely obsolete) gPort names a device to use for the display. This was generally used in the past with dual-monitor systems, especially Sun systems in which the layout display might go to `/dev/fb`.

> > `-i` tabletPort

> > > (largely obsolete) tabletPort names a device to use for graphics input. This has not been tested with modern graphics tablet devices. It is ignored by the X11 and OpenGL display interfaces.

> > `-F` objFile saveFile

> > > (largely obsolete) Create an executable file of the current magic process, a core image snapshot taken after all initialization. objFile is the name of the original executable, and the image will be saved in saveFile. This only works on VAXen and SUNs running an old SunOS (using a.out executables).