|
Application Programming: Creating and Running Programs in IDL |
|
Entering text at the command line allows you to perform ad hoc analysis, compile and launch applications, and create $MAIN$ programs. IDL provides some valuable command line functionality to support these tasks. See the following sections for details.
| Note Also see Recording IDL Command Line Input for information on maintaining the history of an IDL session in a file. |
You can paste multiple lines of text from the clipboard to the command line. You simply need to place some text in the clipboard and paste it into the command line. Any source of text is valid, with emphasis on the requirement that the text be convertible to ASCII. When copying text from an IDE editor, the selection mode can be stream, line, or box. See Changing Text Selection Modes (Windows Only) for details.
| Note Line and box modes automatically put a trailing carriage return at the end of the text. When pasted, the last line is executed. |
Be sure when you paste multiple lines that they only contain a single IDL command or are lines which include statements that utilize line continuation characters ($). Multi-line statements will produce unintended IDL interpreter behavior or errors. Lines are transferred to the command line as is. Namely, leading white space is not removed and comment lines are sent to the IDL interpreter without distinction.
| Note Under Microsoft Windows, tabs are converted to white space based on the value of the IDL_WDE_EDIT_TAB_WIDTH preference. |
IDL Online Help (March 06, 2007)