![]() |
![]() HP OpenVMS Systems Documentation |
![]() |
OpenVMS User's Manual
A.10.5 Saving in a Command FileWhen 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
section file.
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.
Use DEFINE KEY commands to define keys that are not otherwise defined by SET KEYPAD EDT. Put the key-definition commands in your initialization file or save the definitions in a section file. The following sets of EDT and EVE key definitions are equivalent: In EDT:
In EVE:
Note the differences between EDT and EVE in some key names, as well as
differences in command names. For more information about key names, see
Section A.1.
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
file.
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: In EDT:
In EVE:
(The EVE command SET WRAP corresponds to the EDT command SET
NOTRUNCATE.)
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: In EDT:
In EVE:
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: In EDT:
In EVE:
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. EDT Macro:
DECTPU Procedure:
To execute the macro or procedure, use the following commands: In EDT:
In EVE:
A.11.8 Converting EDT Nokeypad Statements to DECTPU ProceduresYou 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. In EDT:
In DECTPU:
A.11.9 Using the WPS Keypad Ruler KeySetting 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:
Appendix B
|
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
Character Set:
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).
B.2 DCL Character Set
Table B-1 lists the characters in the DCL character set:
Symbol | Name | Meaning |
---|---|---|
@ | 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. |
/ | Slash | Qualifier prefix. |
+ | 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. |
' | Apostrophe | Substitution operator. |
. | 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. |
Previous | Next | Contents | Index |