While the Line Text Editor (EDI) has a wealth of diverse commands, most of these are not needed for general use. Included in this file are the minimul set of commands required to write and correct a program. To invoke the editor ,EDI, type EDI or EDI filspecifier. Additional HELP is available by typing HELP EDIT keyword where allowed keywords are; COMMAND MODE COMMAND SUMMARY TEXT WRITE Before typing HELP EDIT COMMAND MODE, set your terminal to hold mode if it is a CRT. 2 TEXT MODE To enter the TEXT INPUT mode from the command mode(after any line in the file you are editing) type ,  I I without any following string is one form of the INSERT command. To enter the COMMAND mode from the TEXT entering mode type carriage return twice. Generally EDI inputs and outputs text a page(BLOCK) at a time. In this mode one can access any line of text on the current page. Entered text must eventually be written out to the disk file. For further HELP type HELP EDIT WRITE 2 WRITE The WRITE command writes out the entire text buffer to the output file specifier and clears the text buffer so that the user may enter in new text. When one fills the terminal page with text, one should write that page onto the output file by typing WRITE in the COMMAND MODE. Sooner or later, if the text is not written onto the output file, the user text area will overflow and several lines of text will be lost. Once a page has been writen out to the output file, via the WRITE command, it can not be accessed without executing a TOF command(TOP of FILE). TOF has the effect of reading all the current input file into the output file, closng the output file, and finally opening the output file as the new input file. This process creates a new version number file(with the same filename) for each TOF which is executed. 2 COMMAND 3 MODE If the file referenced by the filespecifier does not exist EDI creates the file and enters the TEXT INPUT mode. All information typed in goes into the file. If the filespecifier exists already, EDI opens that file for input and a file of the same name with one higher version number for output, and enters the EDITOR or COMMAND mode. One can tell EDI is in the COMMAND mode because it prints a * in the left hand collumn to signify that it is ready to accept a command. 3 SUMMARY A[dd] string Append string to current line. AP string Append string to current line and print the resultant line. BO[ttom] Move the current line pointer to the bottom of the current block. [n]C[hange] /string1/string2/ Replace string1 with string2 n times in the current line. ^Z Control Z. Close all files and end the editing session. D[elete] [+/-n] Delete the current line and n-1 lines if n is positive or delete n lines preceeding the current one if n is negative. DP [n] or DP [-n] Same as DELETE except the new current line is printed. Moves the current line pointer up one line EX[it] filespec Closes all files, and renames the output file to the name in filespec. Ends the editing session. I[nsert] [string] Enter string following current line or enter TEXT mode if string is not specified. KILL KILL stops all editing on the current input file, deletes the output file, and has the editor prompt (EDI> ) for a new input file. LI Print the entire contents of the block starting at the current line. [n] L[ocate] string Locate the nth occurrence of string. N[ext] [+/-n] Establish a new current line n lines away from the current line. NP [n] or NP [-n] Establish and print new current line n linew away form the current line. P[rint] [n] Print the current line and the next n-1 lines. The last printed line is the new current line.  REN[ew] [n] Write current block to output file and read in new block from input file, n times. Carriage Return. Print the next line and make it the current line number. Exit from TEXT input mode. R[etype] string Replace current line with string; or delete current line if string is null. SIZE N SET THE PAGE SIZE FOR LENGTH N. THIS IS PARTICULARLY CONVENIENT WHEN USING A TERMINAL WITH FEWER THAN 39 LINES PER SCREEN. T[op] Move the current line pointer to the top of the current block of lines. TOF Return to the top of the input file and save all pages previously edited.