User's Guide to EVEPlus None Revision/Update Information: A-15 - DECUS Edition This document describes a series of extensions to the EVE Editor called EVEPlus. There are instructions on installing, customizing, and using the EVEPlus editor. Operating System and Version: VAX/VMS V4.2 Software Version: E1.0 The information in this document is subject to change without notice and should not be construed as a commitment by Digital Equipment Corporation. Digital Equipment Corporation assumes no responsibility for any errors that may appear in this document. No responsibility is assumed for the use or reliability of software on equipment that is not supplied by Digital Equipment Corporation or its affiliated companies. Copyright (c) 1985 by Digital Equipment Corporation All Rights Reserved. The following are trademarks of Digital Equipment Corporation: DEC DIBOL RSX DEC/CMS EduSystem UNIBUS DEC/MMS IAS VAX DECnet MASSBUS VMS DECsystem-10 PDP VT DECSYSTEM-20 PDT DECUS RSTS DECwriter ii CONTENTS PREFACE CHAPTER 1 EVEPLUS COMMANDS 1.1 DESCRIBE KEY . . . . . . . . . . . . . . . . . . . 1-1 1.2 DESTROY BUFFER . . . . . . . . . . . . . . . . . . 1-1 1.3 DISPLAY CHARACTER . . . . . . . . . . . . . . . . 1-2 1.4 ELIMINATE TABS . . . . . . . . . . . . . . . . . . 1-3 1.5 FIX CRLFS . . . . . . . . . . . . . . . . . . . . 1-3 1.6 LIST BUFFERS . . . . . . . . . . . . . . . . . . . 1-4 1.7 LIST COMMANDS . . . . . . . . . . . . . . . . . . 1-5 1.8 LOAD . . . . . . . . . . . . . . . . . . . . . . . 1-5 1.9 NUMBER LINES . . . . . . . . . . . . . . . . . . . 1-6 1.10 PRINT BUFFER . . . . . . . . . . . . . . . . . . . 1-7 1.11 PRINT FF . . . . . . . . . . . . . . . . . . . . . 1-7 1.12 PRINT FILE . . . . . . . . . . . . . . . . . . . . 1-8 1.13 PRINT RANGE . . . . . . . . . . . . . . . . . . . 1-8 1.14 PRINT SCREEN . . . . . . . . . . . . . . . . . . . 1-9 1.15 RELEASE BUFFERS . . . . . . . . . . . . . . . . . 1-9 1.16 SEARCH . . . . . . . . . . . . . . . . . . . . . 1-10 1.17 SET EAG WINDOW KEYS . . . . . . . . . . . . . . 1-11 1.18 SET EDT KEYPAD . . . . . . . . . . . . . . . . . 1-12 1.19 SET FLASHING . . . . . . . . . . . . . . . . . . 1-15 1.20 SET MAPPING . . . . . . . . . . . . . . . . . . 1-15 1.21 SET MATCHING . . . . . . . . . . . . . . . . . . 1-16 1.22 SET RECTANGULAR . . . . . . . . . . . . . . . . 1-17 1.23 SET VMS LINE EDITING . . . . . . . . . . . . . . 1-19 1.24 SET WRITE . . . . . . . . . . . . . . . . . . . 1-19 1.25 SORT BUFFER . . . . . . . . . . . . . . . . . . 1-20 1.26 STATUS LINE . . . . . . . . . . . . . . . . . . 1-21 1.27 TRIM BUFFER . . . . . . . . . . . . . . . . . . 1-21 1.28 WHAT LINE . . . . . . . . . . . . . . . . . . . 1-22 CHAPTER 2 BUILDING EVEPLUS 2.1 SUGGESTIONS FOR WRITING YOUR OWN EVEPLUS INCLUDE FILES . . . . . . . . . . . . . . . . . . . . . . 2-2 iii PREFACE INTENDED AUDIENCE This book is intended for users of the EVE text editor who wish to have additional capabilities beyond what EVE itself provides. CONVENTIONS USED IN THIS DOCUMENT Convention Meaning The phrase CTRL/x indicates that you must press the key labeled CTRL while you simultaneously press another key. [option] Square brackets indicated that the enclosed item is optional. (Square brackets are not, however, optional in the syntax of a directory name in a file specification). {abc|def} Braces indicate that you must choose one of the enclosed items. ASSOCIATED DOCUMENTS The reader is presumed to be familiar with the EVE text editor described in "VAX EVE User's Guide". iv CHAPTER 1 EVEPLUS COMMANDS 1.1 DESCRIBE KEY This command requests a key and then returns a one-line description of the key (if one exists). Format DESCRIBE KEY Steps 1. Press . 2. Enter the DESCRIBE KEY command. 3. Press . 4. The editor will ask you to press the key that you wish described. 5. A one-line description of the key is displayed in the message window. 1.2 DESTROY BUFFER This command will destroy the contents of a buffer, and the buffer itself. If the buffer you are destroying has been modified or is a system buffer, you will be asked to confirm the operation. The DESTROY BUFFER command is useful when you no longer wish to have a buffer in your editing session. 1-1 EVEPLUS COMMANDS DESTROY BUFFER Format DESTROY BUFFER buffer-name Steps 1. Press . 2. Enter the DESTROY BUFFER command followed by a buffer name. 3. Press . 4. The buffer (and its contents) are deleted from the EVE editing session. If the buffer was mapped to a visible window, another buffer is substituted. 1.3 DISPLAY CHARACTER When the EVE editor cannot display a character (e.g., a control character) it substitutes a reverse question mark in its place. This command will interpret the character the cursor is on, and produce a readable version. Information about the character includes its octal, decimal, and hexidecimal values. Format DISPLAY CHARACTER Steps 1. Press . 2. Enter the DISPLAY CHARACTER command. 3. Press . 4. The interpretation of the character is displayed in the message window. 1-2 EVEPLUS COMMANDS ELIMINATE TABS 1.4 ELIMINATE TABS This command will remove tabs from your file and substitute the proper number of spaces to keep the appearance of the document the same. Format ELIMINATE TABS Steps 1. Press . 2. Enter the ELIMINATE TABS command. 3. Press . 4. Starting at the current cursor position, all tabs are removed from the buffer and replaced by spaces. 1.5 FIX CRLFS This command removes carriage returns and linefeeds from buffers (e.g., if you are reading a file generated by Runoff). NOTE The RMS file characteristics are NOT changed by this command. You may have to issue a CONVERT command to convert the file from "no carriage_control" to one with "carriage_return carriage_control" Format FIX CRLFs Steps 1. Press . 2. Enter the FIX CRLFS command. 3. Press . 4. All carriage-return linefeed sequences are removed. 1-3 EVEPLUS COMMANDS LIST BUFFERS 1.6 LIST BUFFERS This command will produce a list of buffers currently in use. If you specify ALL buffers, then both system and user buffers are listed, otherwise only user buffers are listed. The LIST ALL BUFFERS command produces the following display: Buffer name Lines Attributes $LOCAL$INI$ 4 System CHOICES 0 Modified No-write System COMMANDS 5 Modified No-write System DCL 0 No-write System HELP 0 No-write System INSERT HERE 0 No-write System LIST BUFFER 12 Modified No-write System MAIL_20E00748.TMP 17 Modified MESSAGES 11 Modified No-write System PROMPTS 0 No-write System SHOW 0 No-write System After you issue the command, the Select and Remove keys change their function (see table below). When you leave the buffer containing the buffer listing (e.g., via the BUFFER, GET FILE, or GOTO commands) the keys are restored to their original function. Function Key Operation . 3. Position cursor to the other end of the range of text you want printed. 4. Press . 5. Enter the PRINT RANGE command. 6. Press . 1.14 PRINT SCREEN Prints the contents of the current screen on a printer attached to the user's terminal. Format PRINT SCREEN Steps 1. Press . 2. Enter the PRINT SCREEN command. 3. Press . 1.15 RELEASE BUFFERS This command will write out all writable, modified user buffers and delete all remaining buffers for the session. This command is useful if you run EVE as a "kept" editor and wish to "clean house". Format RELEASE BUFFERS 1-9 EVEPLUS COMMANDS RELEASE BUFFERS Steps 1. Press . 2. Enter the RELEASE BUFFERS command. 3. Press . 4. You will be positioned in the MESSAGES buffer. From here you can enter commands to bring in new files, etc. 1.16 SEARCH This command is an enhanced version of the default searching mechanism built into the Eve editor. The SEARCH command allows wild-carded searches. Meta Operation/Matches * Multi-character wildcard, do not cross record boundaries % Single-character wildcard # Multi-character wildcard, cross record boundaries \ Quote next character ^ Next character is a control character Format SEARCH [search-pattern] Steps 1. Press . 2. Enter the SEARCH command followed by the string or pattern you wish to locate in the current buffer. 3. Press . 4. You are positioned in your buffer to a string that matches. 1-10 EVEPLUS COMMANDS SET EAG WINDOW KEYS 1.17 SET EAG WINDOW KEYS This command establishes an alternate windowing environment to the one supplied by the Eve editor. Features of EAG windowing are: o Quick or continuous display of all non-system buffer names. o Swift, two-keystroke access to (a maximum of) 9 editing buffers. o Function keys for reading and writing files. If you enable the EAG window environment, you get the following keypad assignments: Keystroke Sequence Operation n n = 1 to 9 is equivalent to the EVE BUFFER command for that buffer. n = 0 displays buffers. Get a file and map to a buffer. Write file associated with current buffer. Write a named file. Other window. Toggle between 1 and 2 windows. <_^_> Scroll message window up one line. <_V_> Scroll message window down one line. --> Shift current window to the right. <-- Shift current window to the left. The symbol in the above table refers to your current "shift" key. This is established with the SET SHIFT KEY command. A subsetted version of the EAG windowing keys is available via the SET MAPPING command. 1-11 EVEPLUS COMMANDS SET EAG WINDOW KEYS Format SET [NO]EAG WINDOW KEYS Steps 1. Press . 2. Enter the SET EAG WINDOW KEYS command. 3. Press . 1.18 SET EDT KEYPAD This command will define the VT100 or VT200 numeric keypad to emulate the EDT editor VT100 keypad definitions. No existing key definitions are retained. If you elect to include this option in you EVE_PLUS customization file, the EDT keypad will "automatically" be defined. EDT_KEYPAD The keys defined are: The GOLD key blank 1.indent -16 Retains the EVE keypad definitions (NOT EDT help) FIND NEXT (occurance of string). FIND (string). This command is identical the EVE's FIND command. DELETE LINE UNDELETE LINE LINE, Move to beginning of next line if the current direction is Forward, or to the previous line if the direction is Reverse. OPEN_LINE WORD, Moves the cursor to the beginning of the next word in the current direction (Forward or Reverse). CHANGE CASE 1-12 EVEPLUS COMMANDS SET EDT KEYPAD EOL, Moves to the end of the current if in the Forward direction, or to the end of the previous line if in the Reverse direction. DELETE to EOL CHAR, Moves the cursor to the next character in the current direction (Forward or Reverse). SPECINS - "Special Insert" FOREWARD, Set direction Forward BOTTOM, go to "bottom" of file. REVERSE, Set direction Reverse TOP, go to "top" of file. CUT PASTE PAGE, moves the cursor to the next page boundary (Form Feed character) in the current direction (Forward or Reverse). COMMAND, the EVE "DO" command. SECTION, moves the cursor to the next "section" (essentially 1 screen of data) in the current direction (Forward or Reverse). FILL Not defined SELECT RESET DELETE WORD, Contrary to EDT, this key will delete the entire word which contains the cursor (any blanks and tabs are considered leading blanks and are deleted with the following word). UNDELETE WORD 1-13 EVEPLUS COMMANDS SET EDT KEYPAD DELETE CHARACTER UNDELETE CHARACTER Same as RETURN key (in EVE) or ENTER key (in EDT). REPLACE, or Substitute string. MOVE cursor to previous line. In the EVE editor, the cursor is allowed to go anywhere on the screen, even where no characters have been entered. MOVE cursor to next line (See for more description). DEFINE KEY, Uses EVE's Define Key command. Format SET EDT KEYPAD Steps 1. Press . 2. Enter the SET EDT KEYPAD command. 3. Press . You may series a messages flashing through your MESSAGE window (at bottom of screen). These messages are indicating that existing key definitions are being modified. 1-14 EVEPLUS COMMANDS SET FLASHING 1.19 SET FLASHING This command locates corresponding characters in a buffer and "flashes" them whenever you type the character given in the command. The line with the matching character is displayed in the message window. For example, this command can be used to make the editor display which "(" matches which ")" in a program with the command SET FLASHING ). The following characters can be used to flash their corresponding character: ) } > ' " Format SET [NO]FLASHING characters-to-match Steps 1. Press . 2. Enter the SET FLASHING command followed by one or more characters that are to be matched. 3. Press . 1.20 SET MAPPING This command provides a subset of the features supplied by the SET EAG WINDOWS command. In particular, the SET MAPPING command provides the two-keystroke access to (a maximum of) 9 editing buffers. The following keypad assignments are made with the SET MAPPING command: Keystroke Sequence Operation n n = 1 to 9 is equivalent to the EVE BUFFER command for that buffer. 0 Displays the user buffer list. The symbol in the above table refers to your current "shift" key. This is established with the SET SHIFT KEY command. 1-15 EVEPLUS COMMANDS SET MAPPING Format SET [NO]MAPPING Steps 1. Press . 2. Enter the SET MAPPING command. 3. Press . 1.21 SET MATCHING This command will automatically insert a corresponding character into a buffer. For example, if you type a "(", a matching ")" is also placed in the buffer. The cursor is positioned so that the next character typed will be between the matched characters. The following characters will generate a corresponding match character: ( { < ` ' " Format SET [NO]MATCHING characters-to-match Steps 1. Press . 2. Enter the SET MATCHING command followed by the character(s) you wish to have matched during this editing session. 3. Press . 1-16 EVEPLUS COMMANDS SET RECTANGULAR 1.22 SET RECTANGULAR This command turns rectangular cut-and-paste on or off. When the SET RECTANGULAR command is issued, the SELECT, REMOVE, and INSERT HERE keys are redefined to perform rectangular cut and paste operations. Rectangles are formed by positioning the cursor to where the upper-left corner of the rectangle will be and pressing