|
Application Programming: Creating and Running Programs in IDL |
|
Commands entered at the IDL prompt are usually interpreted as IDL statements to be executed. Other interpretations include executive commands that control execution and compilation of programs, shell commands, and so on. Input to the IDL prompt is interpreted according to the first character of the line, as shown in the following table.
| Note The information in this section applies equally to IDL used in command-line mode or via the IDL Development Environment. |
|
First Character
|
Action
|
|---|---|
|
|
Executive command. See About Executive Commands for details.
|
|
|
Help inquiry.
|
|
|
Send an operating system commands to a subprocess.
Note - SPAWN procedure is a more flexible alternative. It need not be used interactively and the standard output of the command can be saved in an IDL string array. See SPAWN for details.
|
|
|
Batch file initiation.
|
or key |
Recall / edit previous commands.
|
|
|
In UNIX command-line mode, exits IDL, closes all files, and returns to operating system.
|
|
|
In UNIX command-line mode, suspends IDL.
|
|
|
IDL statement.
|
IDL executive commands compile programs, continue stopped programs, and start previously compiled programs. All of these commands begin with a period and must be entered in response to the IDL prompt. Commands can be entered in either uppercase or lowercase and can be abbreviated. Under UNIX, filenames are case sensitive; under Microsoft Windows, filenames can be specified in any case. See Executive Commands for a descriptions of the available executive commands.
| Note Comments (prefaced by the semicolon character in IDL code) are not allowed within executive commands. |
Executive commands are used to create $MAIN$ programs. See Creating $MAIN$ Programs for details.
When working at the command line, key combinations can be used to quickly edit a command. The line-editing abilities and the keys that activate them differ somewhat between the different operating systems. To access the history of commands entered at the command line, see Recalling Commands.
| Note The behavior can also differ within the same operating system, between the Command prompt for IDL and the Command line on the IDLDE. |
The table below lists the edit functions and the corresponding keys.
IDL Online Help (March 06, 2007)