Increased Tjjx Efficiency Using Advanced EDT Editor Features

Increased Tjjx Efficiency Using Advanced EDT Editor Features

Increased TjjX Efficiency Using Advanced EDT Editor Features Linda Williams & Linda Hall The University of Tennessee Space Institute, Tullahoma, Tennessee 37388 615-455-0631. Bitnet: williamsQutsiv1 Bitnet: hallQutsiv1 Abstract ?l$,X is implemented on various computer systems often with little or no consideration given to the time saving quality of an efficient editor. For both the novice and expert 'l$,X user, employing advanced EDT editor features greatly enhances the efficient use of m. Because there are volumes describing these various tools, it becomes necessary to reduce this vast amount of material to a manageable subset. This paper describes selected EDT features, such as editor initialization files and other commands which, when mastered by the user, enhance the editing power of w. Introduction the next section.) When the edit session begins, EDT starts by presenting *, the line-mode prompt. This paper describes a text editor. EDT, supported At this prompt it is possible to use many line- by a VAX 111785, running the VMS operating sys- mode commands or to execute a specific line-mode tem. Under the name EDT+, this versatile editor command called CHANGE: will also operate under MS-DOS (2.0 or higher) or UNIX on Ardent, AT&T, Celerity, Convergent, *c (carriage return) DEC, Encore, Gould. Hewlett-Packard, IBM, Inter- This particular command allows for full screen graph, MIPS, SUN, and many others. editing capability (screen-mode). Other commonly Because skill levels in using EDT as well as used line-mode editor functions for creating ?l$,X other editors vary greatly, from novice to expert, other data files are: advanced editor features are often overlooked. Al- carriage return -present the current line, though there are volumes of documentation on TYPE [range]- display the specified lines on the editors, with help files and computer-aided instruc- terminal, tion, learning about these advanced features often SUBSTITUTE-replace the next occurrence of occurs by passing information from user to user. an old string with a new string over a range of It is the purpose of this paper to continue that specified lines, tradition by describing three fundamental areas of WRITE [range] -write a buffer or a segment of EDT, namely, 1) EDT line-mode features. 2) EDT a buffer to a different disk file, screen-mode keypad features, and 3) EDT initial- DELETE [range] - delete a line or range of lines, ization features. Other editors assign similar type EXIT -end the editor session and save a copy names to their editor features; keyboard macros, to the MAIN buffer, learning keystrokes, or recording keystrokes. What- QUIT-end the editor session without saving ever your editor, the message is still the same: any changes, when an efficient editor is mastered, knowledge of CHANGE [line #]-change to screen mode at an its features and capabilities give the user a fast and optional location. powerful method of editing. Using the key sequence Ctrl Z will evoke the line-mode option * anywhere within the text for EDT Line-mode Features use of the above commands. GOLD (PFI) and 7 When working within a document, EDT offers the (keypad), in screen-mode will also prompt for line- user two fundamental editing modes, line-mode and mode options. Specific words and numbers can be screen-mode. (Screen-mode will be explained in used as qualifiers in conjunction with SUBSTITUTE and DELETE. These options allow the user one more TUGboat, Volume 11 (1990), No. 3 -Proceedings of the 1990 Annual Meeting 42 1 Linda Williams & Linda Hall level of choice to prevent possible damage to the The figure illustrates the EDT screen-mode file. keypad layout with associated keypad commands The command for VT100-type and PC enhanced-type keyboards. *sub/Tex/\TeX\/wh/query These EDT features are also available on other keyboards; specific key assignment sequences may causes the string of letters Tex to be replaced by vary. the string \TeX\ throughout the whole (wh) file Most keypad keys have two editing functions and prompts with a question mark to verify the associated with them, primary function commands operation on each line displayed. Possible responses and alternate function commands. The primary to this option are yes (y), no (n), or quit (q). function commands, not highlighted, use the indi- The command cated key only. The alternate function commands, *del 121:131 highlighted, use the GOLD key (PFI) in conjunc- deletes lines 121 through 131 of the file. tion with the indicated key to perform the desired The CHANGE command makes rapid correction commands. of errors much easier since Q,X error messages are These keypad functions can be broken down given by line number. For example, if an error into three groups: 1) movement, 2) delete and was detected at line 102 in the rn data file, it is recover, and 3) key definitions and redefinitions. possible to use the command The following three subsections discuss this in more *c 102 detail. to place the user at the point of the TFJ error. Movement. Movement refers to three possibilities, Line-mode commands provide sufficient editing 1) the general movement of the cursor, 2) reposi- power to create most TEX documents; however, by tioning the visual display to another segment of the employing both line-mode and screen-mode features file, for example, the beginning or the end of the time-consuming procedures can be reduced. The buffer, and 3) the movement of the cursor to the next section will explain how screen-mode com- location of a specific text string. mands reduce the input for a given operation from For general cursor movements, the 1 (WORD) on a line-mode command word, possibly from 4 to 7 the keypad moves the cursor from the beginning of keystrokes to a keystroke sequence of one or two one word to the beginning of another. The 2 (EOL) keys. This keystroke reduction enhances editing on the keypad moves the cursor from the current power. cursor position to the end of a line. For repositioning the screen display, the se- EDT Screen-mode Keypad Features quence of GOLD (PFI) and 4 (keypad) advances to the bottom of the text and GOLD (PFI) and 5 (key- pad) advances to the top of the text. For moving PF3 a the cursor to a specific text string, the command FNDNXT DEL L FIND uses GOLD and PF3. The command prompts FIND UND L the user with Search for: at which point the user 11 17 types the desired string and hits 4 (BOTTOM) or 3 - 5 (TOP) to indicate the direction of the search. The PAGE SECT APPEND DEL W REPLACE UND W cursor will then be moved to the first occurrence of 918 the specified string in the indicated direction. Using 6 2 the PF3 (FNDNXT) command will search for the next CUT DEL C occurrence of the previously specified string. PASTE UND C 6 19 Delete and recover. Delete and recover refers to 3 ENTER two possibilities, 1) the complete removal of text, WORD EOL CHAR and 2) the movement of sections of text from one 1 ENTER CHNGCASE DEL EOL SPECINS location to another. Deletion can be thought of in A 3 terms of the entities that the editor understands, the 0 character, the word, the line, and a section of text LlNE SELECT SUBS OPEN LlNE RESET specified by the SELECT command. In each case, the 18 d system associates a buffer with each of these types to hold the given removed entity - character, word, line, or section. Consequently, there is a delete TUGboat, Volume 11 (1990), No. 3 -Proceedings of the 1990 Annual Meeting Increased Efficiency Using Advanced EDT Editor Features character buffer, a delete word buffer, a delete line The edt ini. edt file is allowed to contain only buffer, and section buffer (specifically called the line mode commands, previously stated above. The PASTE buffer). Since each associated buffer contains most common commands are SET and DEFINE KEY. the last piece of text removed, this fact permits the These two basic commands allows users to customize recovery of that same text removed by that last their editing environments. The keyboard can command. be rearranged for specialized editing functions for For the complete removal of text, there are individual preference reducing errors and allowing three commands: 1) DEL C (keypad ,)-deletes the for more advanced application development. current character under the cursor, 2) DEL W (keypad A novice's initialization file may simply contain -) -deletes from the current cursor position to the one line -SET WRAP 75 -forcing words hitting the beginning of the next word, 3) DEL L (keypad 75 column to wrap to the next line. However, as PF4) -deletes text from the current cursor position expertise with the editor grows, so does the size and to the end of the line. The main purpose in using functionality of the initialization files. The following these keypad commands to delete, instead of the presents a fully commented initialization file which delete key, is the previously stated advantages of can be used in the creation of documents; the associated buffers. Using the GOLD key (PFI) in these specific commands can be implemented inde- conjunction with the specific delete key undoes the pendently or in conjunction with other initialization specific operation. For example, GOLD (PFI) and files: PF4 recover the last deleted line. ! Start-up commands for editor EDIT/EDT For the movement of sections of text from one (VAX/VMS) location to another, the CUT-and-PASTE operation is ! ! Key definitions for EDT commands: used. In conjunction with the SELECT operation, ! set wrapping to 75 columns a section of text can be marked and either deleted SET WRAP 75 permanently or moved to another portion of the ! set full-screen editing mode (KEYPAD MODE) buffer to be PASTED into the desired location.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    4 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us