Educational Computing Kalamazoo College Rev. 12/1/85 Using the VAXTPU EDT Keypad Emulator A new implementation of the EDT screen editor is now available. It requires much less CPU time to accomplish most tasks, so you can get more work done in less time. It will also improve overall system response time, especially with a large number of users logged in at one time. It is automatically invoked now, instead of EDT, by the commands ED, EDI, or EDIT (which are described collectively as "ED*IT", below). To get full benefit you should obtain the file TPUINI.TPU with the GET command. _______ However, there are some differences in the screen display and a few EDT commands that are not implemented. For a short period of time we will permit anyone to access the old EDT editor, with the command "EDITEDT filename", but because it places an excessive load on the system, we want the use of the old EDT to stop as soon as possible. Therefore, if you find that the new ____ __ _____ __ editor cannot do what you need, TELL US ABOUT IT right away, either in person or by system MAIL to user SYSTEM. The fast editor is written in a new programming language, VAXTPU (Text Processing Utility), which provides for two stages of customization, called "SECTION" and "COMMAND" files. We have incorporated a variety of new commands for the editor in the Kalamazoo section file (SYST:[SYSLOGIN]KAZSECINI.GBL), and have defined system-wide that the commands ED*IT will all use that file automatically. The editor automatically also looks for a file in the current directory named TPUINI.TPU; if it finds such a file, it attempts to use it as a command file. You can obtain your own copy of our standard TPUINI.TPU file by using the GET command. Command files are compiled each time you start editing, so we have kept those small. The section files are precompiled, so we have speeded up your sessions by placing the bulk of our modifications in that form. All of the customizations to EDT that were implemented in our former standard EDTINI.EDT file are included in KAZSECINI and TPUINI, along with some new ones. _______ ___________ Display Differences Instead of [EOB] at the bottom of the file, it now shows [End of Main]. Control characters, such as , (= CTRL/L), etc., are TPU EDT Page 2 displayed differently. Many of them are just displayed as a solid block. Error and informational messages, from the editor and from the operating system (for example, if you get mail or someone tries to phone you) are displayed at the bottom of the screen in a new format, and can be reviewed by selecting the MESSAGE buffer using the command sequence + B. On those occasions when a command does take a long time to ___ execute, you will not get the "Working" message flashed at the bottom of the screen. Lines with 81 characters, or longer, will have the first 79 characters displayed, followed by a "diamond" in the last column. Nothing is lost, you just can't see it all at once. Since this ordinarily happens only temporarily while adding text in the ___ middle of a line, it should present little difficulty. You can _______ examine the vanished text by using + LEFT ARROW (and later return to normal display with + RIGHT ARROW), but that will conceal the beginnings of the lines (without showing diamonds to indicate the loss). Using the PAGE command (PAD 7) does NOT locate the cursor at the top of the screen, but it does search to the next character. You will therefore now be able to see on-screen the end of one page and the start of the next, immediately after the command. _______ ___________ Command Differences If you use CTRL/C to abort a command, the journal file may be invalidated. Therefore, if you do this, exit the editor with + CTRL/Z and then re-enter with + . CTRL/K = Define Key, now takes key definitions in VAXTPU syntax, not in the old EDT Line Mode syntax. Some examples are available in the file TPUINI.TPU, available with the GET command. + PAD 7 = Command, now takes commands in VAXTPU syntax, not in the old EDT Line Mode syntax. See previous paragraph. To give commands in the old EDT Line Mode syntax, first type CTRL/Z to get the "*" prompt. The VAXTPU command "EXIT" does not write a new copy of the file unless you actually made changes. If for some reason you want to anyway, first type CTRL/Z, as discussed next, and then type EXIT, or just use the + CTRL/Z command. CTRL/Z still gives you an "*" prompt at the bottom of the screen, but only a few of the old EDT Line Mode commands will be accepted. If you need one that isn't implemented, PLEASE LET US KNOW RIGHT AWAY. Afterwards, type C to change back to TPU EDT Page 3 edit mode. The new command CTRL/X can be used to stifle the error messages being spit out at you if you do get ahead of the editor, for example in moving beyond the ends of the buffer. Searches: (a) The key now also terminates a search string, not just the key. (b) You cannot at this time search for a control character; if you need the capability, PLEASE LET US KNOW. The new editor will work only on terminals operating in ANSI mode, such as VT-100's, GIGI's, and Z-29's; it will not work on terminals operating in VT-52 mode. UP and DOWN arrow keys will exhibit sideways wander if there are characters in the line. The sentence jump commands have changed. From CTRL/F to + CTRL/F or CTRL/G and from CTRL/B to + CTRL/B or CTRL/B. The old CTRL/T = TAB ADJUST command no longer takes a numerical __________ prefix. The new equivalent command + T, however, does. A new command, + CTRL/W, is useful when you want to modify two files in a coordinated way. This command sets up the top half of the screen as a window in the originally-edited file, and ____ _____ the bottom half for the other file. When you exit, both files ___ __ _______ may be updated. If you want to move between the two, + M takes you to the original file and + B takes you to the second one. If you want to revert to full-screen, single-window editing, use + CTRL/W again; you will be thrown into the original file, but can then use + B as usual if you want to go full-screen with the second file. Both files may still be updated when you EXIT. The scrolling commands + and + are adjusted for the window size. To go to a specific line of a file, use the new command + C; you will be prompted for the line number you want to go to. If you have implemented this command in your own TPUINI.TPU, then at some convenient time you should remove it; having it there will do no harm beyond slightly slowing down the initialization of the editor each time you use it. We have built it into the Kalamazoo customizations, so it need not appear in your file. The following summarizes all of the commands that are added to the standard VAX TPU EDT Keypad Emulator repetoire by the files TPUINI.TPU, and KAZSECINI.GBL, located in SYST:[SYSLOGIN]. The former can be obtained with the GET command. Nearly all of these commands were first implemented in EDTINI.EDT, using the original version of EDT. The commands listed below are also discussed in the "Command Guide for EDT." The commands are listed in groups according to function: TPU EDT Page 4 Setup changes Pointer Moves Editing Conveniences Multi-Buffer Operations ______ _______ Set-up Changes + CTRL/D Swaps delimiters between WP and Programming, i.e., changes the definition of a "WORD" for keypad commands. _______ _____ Pointer Moves + C Find a line by number. + CTRL/B -SEN Move the pointer back one sentence. CTRL/B -SEN Move the pointer back one sentence. + CTRL/F +SEN Move the pointer forward one sentence. CTRL/G +SEN Move the pointer forward one sentence. CTRL/N -PAR Move the pointer back one paragraph. CTRL/P +PAR Move the pointer forward one paragraph. CTRL/V Mark position for later restoration. CTRL/R Restore to marked position. + P Move to 58 th line (bottom) of present page; fails if the pointer is at the top of the page. + Move back 21 lines (a full screen jump). + Move forward 21 lines (a full screen jump). + Move 8 characters in the current direction. TPU EDT Page 5 _______ ____________ Editing Conveniences + CTRL/A Changes back and forth between insert and overstrike modes for text entry. Be ______ sure that you are in insert mode before performing any of the following commands: cut, paste, undelete character, undelete word, or undelete line. + D Inserts the character string "_:" which has the effect of a forward half linefeed (moves the print DOWN half a line) when printing on the NEC Spinwriter the .MEM file that RUNOFF produces from your .RNO file with this character string. See + U, below. (Used to begin subscripts and to end superscripts.) + F Re-FILL the entire present paragraph; pointer must be in the interior of the paragraph. + H Obtain brief description of customized key actions. + I INCLUDE a file in the current buffer. + R INCLUDE the file STANDARD.RNO. Used when editing a RUNOFF file in order to easily set the defaults. + U Inserts the character string "_;" which has the effect of a reverse half linefeed (moves the print UP half a line) when printing on the NEC Spinwriter. See + D, above. (Begin superscripts and end subscripts.) + V for overstrikes, inserts the character = CTLR/H; the two characters on either side of the CTRL/H will be printed on top of each other when you get hardcopy. In RUNOFF, use the % character after once giving the command ".flags overstrike". + Swap characters on either side of pointer, correcting a common sort of typographical error. + Q QUIT, no SAVE of journal file. + CTRL/Z EXIT, no SAVE of journal file. TPU EDT Page 6 ____________ __________ Multi-Buffer Operations (Note, you will be requested to name the buffer.) + B Edit a buffer; in dual window mode (see + CTRL/W), selects second window. + M Return to editing the MAIN buffer. + O Write a buffer to a file. + S Show buffer information. + Erase a buffer. + CTRL/W Permits single- or dual-window editing. ___________ ___ ______ Customizing the Editor Some people find it convenient to several specialized initialization files for the editor: perhaps one for editing PASCAL programs, another for term papers, etc.. If you want to do that, we suggest that you keep one of them named TPUINI.TPU, probably the paper-writing one. Your LOGIN.COM file would then be edited to include, for example, lines such as the following: $! $ ES :== EDIT/TPU/SECTION=SYST:[SYSLOGIN]KAZSECINI- /COMMAND=SYS$LOGIN:TPUINI.SIP $! $ EP :== EDIT/TPU/SECTION=SYST:[SYSLOGIN]KAZSECINI- /COMMAND=SYS$LOGIN:TPUINI.PAS These would define the new commands ES for editing your SIP and EP for editing PASCAL programs. See the comments in the standard TPUINI.TPU for guidance in modifying the copies of it, here TPUINI.SIP and TPUINI.PAS. The typical modifications will be in the indentation and the right margin. If you want to make more extensive customizations, please come in and talk to us, so that we can keep track of what is going on. __________ References ______ ___ ______ ________ _____ _________ _____ VAXTPU EDT Keypad Emulator Quick Reference Guide. DIGITAL. ___ ____ __________ _______ _________ ______ VAX Text Processing Utility Reference Manual. DIGITAL. October 4, 1985 Richard D. Piccard Rev. 12/1/85 Richard D. Piccard