Contents

Previous

Next

Last

The Control Manager Editor

The CM Editor is used to edit both Script (CMS) and Command (CMC) files. The CM Editor is accessed via a button on the GUI tool bar. In operation, the editor looks somewhat like this:


Editor Tool Bar

Across the top of the editor screen is the editor tool bar which contains the buttons that control most aspects of editor operation. For a more complete discussion of the buttons and their functions, see the section on the Editor Tool Bar later in this guide.

File Tabs

Immediately below that you'll see two tabs marked "Script File (CMS)" and "Command File (CMC)". Any particular script may have any combination of these tabs. If the Map file includes a CMS script file, then the Script File tab will be available. If the Map references a Command File on the Program Settings Tab. If the Map file does neither then the CM Editor is not available and neither of the tabs will appear.

Editor Screen

Below the tabs is the editor screen where you enter the text for the CMS or CMC files. While the operation of the editor itself is essentially the same for both types of files, there are some differences. These will be covered a bit later in the sections on Editing CMS Files and Editing CMC Files.

At the left edge of the Editor Screen is a "Gutter" area. It currently just displays the line number next to each line. You can disable the Gutter via the Editor Options button described later.

Status Bar

At the very bottom of the CM Editor screen is the Status Bar. There are five "indicators" on the Status Bar that show the current state of the editor. The indicators will appear and disappear or change state to indicate the various conditions. These indicators are:

LIN and COL

The Line (LIN) and Column (COL) sections indicate the current line and column occupied by the editor text cursor.

Insert Mode Indicator

INS//OVR

This indicator displays the current Insert Mode, e.g. whether what you type is inserted at the current cursor position, moving the text following the cursor to the right, or the new text overwrites the old text. The indicator shows INS when you are in Insert Mode and OVR when you are in Overwrite mode. Insert mode is toggled using the "INS" key on the keyboard. The cursor will change from the normal "I-Beam" cursor in Insert Mode to a "Block" cursor in Overwrite mode.

Block Mode Indicator

The Editor includes three modes for dealing with marked blocks of text. The Block Mode indicator shows the current mode. In Normal Mode the highlighted text marked text can start on any character and end on any character. All the text starting with the first character and extending through the last character will be marked. When the editor is in Normal Mode, the indicator shows "NRM". Selecting Normal Mode is done by pressing "CTL SHF n".

The second mode is Colunm Mode. The indicator will show "COL" when the editor is in Column Mode. The marked text is taken as a column with it's corners defined by the line and column of the start and end of the marked text. Portions of marked lines to the right of the rightmost highlighted character or left of the leftmost highilighted character are not treated as marked and the column of text may be dragged, cut, copied, pasted, etc. as a column. Column Mode is selected by pressing "CTL SHF c".

The third mode is Line Mode. The indicator will show "LIN" when the editor is in this mode. The marked text only includes whole lines. If you start the marked block at line 10, column 20 and end at line 15, column 5 for example, the marked text will include all the text on lines 10 through 15 regardless of where the cursor was positioned on the line when the text was marked. You can select Line Mode using "CTL SHF l".

Change Indicator

The right-most indicator on the Status Bar is the "Change" indicator. It will be blank until you make some change in the file that you are editing, then it will show "CHG". Saving the map will turn the Change Indicator off until you make another change to the map.

Top Line Indicator

The editor also has a "top line indicator". If you put the mouse on the vertical scroll bar and the file is over one page long, a box will appear that tells you which line is at the top of the display. This can be useful with long files as it gives you an idea of where the cursor is currently positioned.