Command Line Options

When running Gsharp or GsharpApp from the command line, a number of options can be specified:

-apply Sets Gsharp's Auto Apply option to on. It is off by default.
-bs

Starts Gsharp without the backing store option.

Instead of the graph being rendered object by object to the screen it is rendered to an area of memory and then transferred to the canvas when complete.

Use this option if you want to animate some plots without the flashing as each graph is redrawn.

-editors

Postpones the initiliasation of each resource editor until it is used.

Using this option will increase start up time, but will mean a small delay the first time an editor is used.

-help Displays a list of all startup options
-logo Suppresses the Gsharp startup logo
-startup filename

Specify the name of the file to be used as the startup logo. The file must be an XPM or bitmap.

If -startup is not specified then Gsharp will look for an image file with the same name as the executable in $UNIDIR/bitmaps.

If no image can be found there then the built-in startup logo will be used.

-repaintoff Sets Gsharp's Auto Repaint option to off. It is on by default
-warnings UNIX Only. Prints Xt warnings.
-batch filename Run Gsharp in batch mode (without an interface). The specified file is executed and then Gsharp exits. See Batch Mode in the User Guide for more details.
-device device Directs the output to the specified device
-display display Motif only. Directs the output to the specified display.
filename

The specified file is executed by Gsharp.

If the file has a .gsl extension then the standard Gsharp interface is created. If it has a .gsa extension then no interface will be created - the script must create its own.

If multiple files are specified then then only the last one specified will be executed.

Some Examples

Gsharp -batch daily.gsl
Run the file daily.gsl in batch mode
Gsharp template.gsl

Start Gsharp and then run the script template.gsl

Gsharp myapp.gsa

Run myapp.gsa using Gsharp. The application can include Gsharp tool's and resource editors.

GsharpApp myapp.gsa

Run myapp.gsa using GsharpApp. The application must construct all of its own dialogs.

Gsharp myapp.gsa -startup myapp.bmp

Start myapp with the specified startup logo.

Return to Gsharp Reference Manual.