HP OpenVMS Systems Documentation
OpenVMS User's Manual
A.10.5 Saving in a Command File
When you use the SAVE ATTRIBUTES command or when you save attributes on exiting or quitting, you can have EVE create or update a command file. To save attributes in a command file, use the SAVE ATTRIBUTES command, as follows:
The prompt for the command file name shows, in brackets, the default command file that EVE uses if you press the Return key at the prompt without typing a file name. This default is one of the following:
You can set your preferred default command file --- that is, the command file you want EVE to create or update, without having to specify the file each time you save attributes. For example, the following command sets your default command file as MYCOM.TPU in your current directory:
If you want to save in a command file rather than in a section file, you should also use the SET NOSECTION FILE PROMPTING command. Then, when you save attributes, EVE asks whether to save in a command file without first asking whether to save in a section file.
When you use SET DEFAULT COMMAND FILE, you usually specify the command file you are going to use at startup for future editing sessions. The command does not determine the command file to be executed when you invoke EVE, but only the command file in which you save attributes and menu definitions. To specify the command file you want executed at startup, do any of the following:
For more information about creating and using command files, see the
EVE online help topic entitled Command Files.
If you are accustomed to the EDT editor, you can customize EVE to work in similar ways by using a section file, an initialization file, or both, or by using DECTPU procedures.
Typically, you save key definitions, learn sequences, and other
extensions in a section file (created with the SAVE EXTENDED EVE
command). Use an EVE initialization file to set editing preferences or
private defaults, such as margins and tabs, which are not saved in the
The SET KEYPAD EDT command defines several keys to emulate EDT. You can
put the command in your EVE initialization file or save the keypad
setting in a section file. Most keypad functions work as in EDT,
although the names may differ. For more information, see the online
help topic called EDT Differences.
The following sets of EDT and EVE key definitions are equivalent:
Use the SET CURSOR BOUND command to enable an EDT style bound cursor.
By default, EVE uses a free cursor, which you can move anywhere in the
buffer. You can save the setting in your section file or DECTPU command
Put the SET RIGHT MARGIN command in your EVE initialization file to set a wrap limit for entering text and for FILL commands. For example, the following EDT and EVE commands are equivalent:
(The EVE command SET WRAP corresponds to the EDT command SET
Put the SET SCROLL MARGINS command in your EVE initialization file to set distances for scrolling to begin automatically as you move the cursor up or down. For example, with a 24-line terminal screen (21-line main window), the following EDT and EVE commands are equivalent:
EVE scroll margins are measured from the top and bottom, respectively.
In EDT, both scroll margins are measured from the top. You can specify
numbers of lines or percentages of the window size. Also, the size of
the EVE main window depends on your terminal settings. For example, on
a workstation, the EVE main window may be longer than 21 lines.
Searches follow EVE rules for case sensitivity. Put SET FIND commands in your EVE initialization file to set the way you want searches to work. For example, the following EDT and EVE commands are nearly equivalent:
These commands are not exact equivalences because EVE always matches
diacritical marks exactly as entered in the search string.
You can use DECTPU procedures in place of EDT macros. Create a buffer that contains the procedures and then use EXTEND commands to compile the procedures with EXTEND commands. Or, put the procedures in a DECTPU command file and then use the /COMMAND qualifier to invoke EVE. In either case, you can save the compiled procedures in your section file.
You can also use the LEARN command to bind the corresponding EVE commands to a single key. You can then save the key definition in your section file. Another method is to put the corresponding EVE commands in an initialization file.
The following examples show a macro from an EDT startup file which is translated into a DECTPU procedure. Each macro creates a new command, WIDEN, which sets the display to 132 columns and sets the right margin to 120.
To execute the macro or procedure, use the following commands:
A.11.8 Converting EDT Nokeypad Statements to DECTPU Procedures
You can usually convert EDT macros and key definitions that use nokeypad specifiers into DECTPU procedures or learn sequences. The following examples show an EDT key definition that uses nokeypad mode and the corresponding DECTPU procedure and key definition. In each case, you define Comma on the numeric keypad to transpose or swap the current and previous character. The --C in EDT nokeypad statements can be translated as MOVE_HORIZONTAL (--1) in DECTPU procedures.
A.11.9 Using the WPS Keypad Ruler Key
Setting the EDT keypad does not define keys for EDT style tab adjustment. However, you can get similar effects by defining a key for the WPS keypad Ruler key (GOLD R) and then using the ruler to add or delete tab stops.
For example, the following command defines F20 as the WPS Ruler key (without having to enable the WPS keypad):
Then, to add or delete tab stops, follow these steps:
If you are working in an environment with Extended File Specifications, refer to the OpenVMS Guide to Extended File Specifications for additional character sets available to you.
The DEC Multinational Character Set is an 8-bit character set with 256
characters; the first 128 characters in the set correspond to the ASCII
character set. Each character has a value in the range 0 to 255 decimal.
B.1.1 ASCII Character Set
Section B.1.2 represents the ASCII character set (characters with decimal values 0 through 127). The first half of each numbered column identifies the character as you would enter it on a VT-series terminal or workstation or as you would see it on a printer (except for the nonprintable characters). The remaining half of each column identifies the character by the binary value of the byte; the value is stated in three radixes --- octal, decimal, and hexadecimal.
For example, the uppercase letter A has, under ASCII conventions, a storage value of hexadecimal 41 (a bit configuration of 01000001), equivalent to 101 in octal notation and 65 in decimal notation. DCL uses hexadecimal values to perform string comparisons. (For a description of string comparisons, see Chapter 14.)
B.1.2 ASCII Character Set, Part 1
The following figure represents the first half of the DEC Multinational
B.1.3 ASCII Character Set, Part 2
The following figure represents the second half of the DEC
Multinational Character Set (characters with decimal values 128 through
255). The first half of each numbered column identifies the character
as it appears on a VT200 or VT300 series terminal or printer (you
cannot display these characters on a VT100 series terminal).
|@||At sign||Places the contents of a command procedure file in the command input stream.|
|:||Colon||Device name delimiter in a file specification. A double colon (::) is a node name delimiter. A colon also acts as a qualifier delimiter. It separates a qualifier name from its value.|
|+||Plus sign||Parameter separator. With some commands it acts as a parameter concatenator. The plus sign is also recognized as a string concatenation operator, a unary plus sign, and an addition operator in a numeric expression.|
|,||Comma||List element separator for parameters or argument lists.|
|-||Hyphen||Continuation character. The hyphen is also recognized as a string reduction operator, a unary minus sign, a subtraction operator in a numeric expression, and a directory-searching wildcard character.|
|( )||Parentheses||List delimiters for argument list. Parentheses are also used to indicate the order of operations in a numeric expression.|
|[ ]||Square brackets||Directory name delimiters in a file specification. Equivalent to angle brackets.|
|<>||Angle brackets||Directory name delimiters in a file specification. Equivalent to square brackets.|
|?||Question mark||Help character.|
|&||Ampersand||Execution-time substitution operator. Otherwise, a reserved special character.|
|\||Backslash||Reserved special character.|
|=||Equal sign||Qualifier value delimiter. It separates a qualifier name from its argument. The equal sign (=) can also be used as an assignment statement when defining symbols.|
|^||Circumflex||Reserved special character.|
|#||Number sign||Reserved special character.|
|*||Asterisk||Wildcard character in a file specification. The asterisk is also used as a multiplication operator in a numeric expression and as an abbreviation delimiter in a symbol definition.|
|.||Period||File type and version number delimiter in a file specification. Also used as a subdirectory delimiter.|
|;||Semicolon||Version number delimiter in a file specification.|
|%||Percent sign||Wildcard character in a file specification. Also used as a radix operator.|
|!||Exclamation point||Indicates a comment.|
|"||Quotation mark||Literal string delimiter.|