TECO invokes the TECO text editor. TECO is an unsupported editor capable of both basic editing and complex programmed string processing. Formats TECO file-spec to edit an existing file TECO out-file-spec=in-file-spec to edit from one file to another MAKE file-spec to create a new file MUNG cmd-file-spec to execute a TECO command file MUNG cmd-file-spec,text-arg as above, but passes a text argument Additional help may be obtained by typing "HELP TECO keyword" where "keyword" is one of the following: BEGINNER -- help for beginners MANUAL -- info on TECO documentation QUALIFIERS -- switches to control setup VTEDIT -- screen editor MUNG -- execute canned TECO macros ]1mINITIALIZATION MEMORY -- re-editing same file NOTE: If there is a TECO.INI file in your UIC it may put you into VTEDIT mode by default -- your screen will fill with text and there is no * prompt. Hit the sequence -CNTL/C to exit with no changes to your file. To suppress initialization type TEC/NOINI filespec or see a TECO expert for help. Type HELP/UNS TECO for alternate help files on Version 35. 2 BEGINNER This HELP sequence gives help to beginners with TECO. ACCESS To create a new file: means carriage return MAKE filespec To modify a file that already exists: TEC filespec After getting the TECO * prompt, single letter commands can be entered to move the editor's pointer around within the buffer containing the contents of your file. Commands are entered by typing the key, then executed by typing the ESC key twice. Commands can be entered one at a time or in a long string followed by two escapes. In this and other TECO documentation, the ESCape key is indicated by a dollar sign ($). For a beginner's list of TECO commands, type HELP TECO BEG COMMANDS. For a short example, type HELP TECO BEG EXAMPLE. 3 COMMANDS BEGINNER'S LIST OF TECO COMMANDS COMMAND EXPLANATION EX Terminates TECO session, i.e. closes existing file and exits from TECO. Itext$ Inserts text into buffer at pointer location. FStext1$text2$ Searches through buffer for text1. If found, replaces with text2. If text1 is not found, an error message is given. T Types text from pointer to end of line. nT Types n lines from pointer. HT Types entire contents of buffer from beginning to end. V Types current line (verify). nV Types current line and n-1 lines above and below. J Jumps pointer to beginning of buffer. ZJ Jumps pointer to end of buffer. C Advances pointer one character. nC Advances pointer n characters. -nC Moves pointer backwards n characters. For more beginner's commands, type HELP TECO BEG MORE. 3 EXAMPLE SHORT TECO EXAMPLE (Text and commands typed by you are underlined.) MAKE TRY.TXT *IThis is the first line of the file. The I command allows us to enter as many lines of input as we wish. $$ *EX$$ >TEC TRY.TXT *L$$ *T$$ The I command allows us to enter as many *CCCCCCCCCCCCCCT$$ -or 14CT allows us to enter as many *DDDDDDIPERMITS$V$$ -or 5DIPERMITS The I command PERMITS us to enter as many *HT$$ This is the first line of the file. The I command PERMITS us to enter as many lines of input as we wish. *EX$$ > 3 MORE MORE BEGINNER'S TECO COMMANDS COMMAND EXPLANATION L Advances pointer one line. nL Advances pointer n lines. -nL Reverses pointer n lines. 0L Moves pointer to start of current line (zero L). D Deletes character following the pointer. nD Deletes n characters following the pointer. -nD Deletes n characters preceding the pointer. K Kills (deletes) text from pointer to end of line, including the at end of line. nK Kills n lines of text from pointer. Stext$ From pointer position, searches for specified text in buffer. If text is found pointer is placed after text. If text is not found, an error message is given. ^C^C Emergency exit from TECO; no changes made to file will be saved. (^C means CTRL/C). 2 INITIALIZATION TECO decodes its commands with a built-in command decoder. If TECO finds a file named TECO.INI in your current default directory, its contents are executed as a TECO macro during startup. To disable the lookup of TECO.INI, the qualifier /NOINI can be used. 2 MANUAL There is a one hundred fifty page manual on TECO that explains all you ever want to know about the weird and wonderful world of TECO. TECO has more commands than the colonel has chickens, and probably no one ever learns them all. There is also a supplementary manual on VTEDIT and the various MUNG macros available. If you just want to look something up, Al Watson has nicely printed and bound copies of these documents. If you must have your own copy, use the PRINT command to print the following: [10,1]TECO.DOC [10,1]VTEDIT.DOC A sixteen page introduction to TECO can be obtained by printing: [10,1]TECOINTRO.DOC 2 MEMORY TECO automatically remembers the file being edited. The file's name is stored in a file named TECF00.TMP in your current default directory. If you invoke TECO without specifying a file-spec, TECO will read its memory logical and re-edit the last edited file. TECO's memory feature is completely inhibited by the /NOMEMORY qualifier. 2 QUALIFIERS /FIND Initially position to (find) the last marked position in the input file. Position is marked with the VTEDIT ESCape-F commands. /INSPECT Simply read the file-spec, don't create a new edited copy. /NOCREATE Do not automatically create a new file if the file specified by a TECO command doesn't already exist. /NOINI Do not attempt to find or use TECO's private initialization file TECO.INI. /NOMEMORY Do not read, create, or use TECO's memory file TECF00.TMP. /SCROLL Automatically enter split screen scrolling mode. The bottom 1/4 of the screen's lines are scrolled. /SCROLL:n sets the number of lines to scroll to n. /VTEDIT Automatically invoke the TECO keypad editor VTEDIT. /VTEDIT:HOLD Set the VTEDIT keypad editor into hold screen mode. /VTEDIT:SEEALL Set the VTEDIT keypad editor into SEEALL mode. (Shows CR, Tabs, etc) /VTEDIT:HOLD:SEEALL Set the VTEDIT keypad editor into both hold screen and SEEALL modes. 2 VTEDIT @VTEDIT 2 MUNG @MUNG