_________________________________ _________________________________ | | | | | | | | Find |Delete | | Up | Down | Left | Right | | Gold | Help | Next | Line | | Top |Bottom |Line B.|Line E.| | | | Find |Undel.L| _________________________________ _________________________________ | | |Subst. |Delete | Gold F: File | Page |Section| Next | Word | Gold Q: Quit |Command| Fill |Subst. |Undel.W| Control W: Refresh _________________________________ Gold M: Mark | | | |Delete | Gold G: Goto |Forward| Back | Cut | Char | Gold W: 132 Columns |Bottom | Top | Paste |Undel.C| Gold N: 80 Columns _________________________________ Gold I: Include File | | End | | | Gold S: Save Buffer | Word | Line | Char | | Line Feed: Delete to beginning of word |Chngcse|Del. El| Ascii | | Control A: Set Indentation ________________________| | Control E: Increase indentation | | | | Control D: Decrease indentation | Line |Select |Enter | Backspace: Beginning of line | Open line |Cancel |Sub Nxt| Gold E: Edit New File _________________________________ Gold O: Set Output File name') Sedt Primer Starting Sedt: The Sedt command format is Sedt {Input File}{/OUTPUT=Output File}{/TERMINAL=VT52|VT100|VK100| VT200|IDENTIFY}{/COMMAND=Command File}{/RECOVER} or KSedt {Input File}{/OUTPUT=Output File}{/TERMINAL=VT52|VT100|VK100| VT200|IDENTIFY}{/COMMAND=Command File}{/RECOVER} The Sedt command runs the edit session in your current process. The KSedt command runs Sedt in a subprocess. At the end of the session, the subprocess will remain and can be reentred with the Sedt command without any arguments. If an Sedt subprocess exists and the KSedt command is entered with arguments, the subprocess will be killed, and a new one started. Normally you will not start a new kept Sedt, but instead use the Gold E command to edit a new file without reinitializing Sedt. The default terminal mode is IDENTIFY, which causes Sedt to send an inquery escape sequence to the terminal. The type of the terminal is determined from the response. Sedt will come up in screen mode. The keypad and control characters are used to control Sedt. The keypad layout is very close to EDT's. If the /COMMAND qualifyer is used, Sedt will execute all commands in the file before input is read from the terminal. The command format is NOT keystrokes. You would normally use this feature when you are an experienced Sedt hacker. The /RECOVER qualifyer is used if an edit session is aborted for some reason. You can recover the aborted session by calling Sedt with the same parameters and /RECOVER. The recovery will only work properly if no control C's were typed during the edit session or if you moved to a known position within the file after the control C. NOTE: You should not save your file manually with the Gold S command if you intend to be able to use the /RECOVER option. If your edit session fails after a manual save the journal file will correctly contain only the data entered after the save, but the file position will be wrong at the beginning of the recovery, and marks set before the save will be lost. Keys: PF1 is the Gold key. Pressing Gold before pressing another key redefines the meaning of that key. The keypad is programmed. All keys on the keypad are programmed to perform editing functions. Most key commandss can be repeated by entering Gold befor hitting the key. Exiting: Gold F: Exits Sedt and writes the output file. Gold Q: Aborts Sedt without writing the output file. Help: PF2: Prints a help text on the screen. Moving commands: Right arrow: Moves the cursor one character forward. Gold right arrow: Moves the cursor to the end of the line. Left arrow: Moves the cursor one character backward. Gold left arrow: Moves the cursor to the beginning of the line. Up arrow: Moves the cursor one line up. The current position within the line is maintained if the previous line is long enough. Down arrow: Moves the cursor one line down. The current position within the line is maintained if the next line is long enough. Backspace: Moves the cursor to the previous beginning of line. Gold keypad 5: Moves the cursor to the top of the file. Gold keypad 4: Moves the cursor to the bottom of the file. Gold M: Saves the current cursor position in Mark 1. Gold Gold M: Saves the current cursor position in Mark . Legal numbers are in the range 1 to 10. Gold G: Moves the cursor to the position saved in Mark 1. Gold Gold G: Moves the cursor to the position saved in Mark . Keypad 4: Sets the default direction to forward. Keypad 5: Sets the default direction to backward. Keypad 3: Moves the cursor one character in the default direction. Keypad 1: Moves the cursor one word in the default direction. Keypad 0: Moves the cursor one line in the default direction. Keypad 2: Moves the cursor to the next end of line in the default direction. Keypad 7: Moves the cursor to the next page in the default direction. Keypad 8: Moves the cursor 8 lines in the default direction. Gold U: Undo the last moving command. Searching: Gold PF3Enter: Finds the next ocurrence of in the default diretion. PF3: Finds the next ocurrence of the same string. Insertion: Printing characters are inserted at the cursor position. Gold Gold 3: Inserts the ASCII character value at the cursor position. Gold Keypad 0: Inserts a carriage return after the cursor position. Deletion: Delete: Deletes the character immediatly before the cursor. Gold Delete: Deletes the word immediatly before the cursor. Control U: Deletes the line up to the cursor position. Line Feed: Deletes the word immediatly preceeding the cursor. Keypad ,: Deletes the character at the cursor position. Keypad -: Deletes the word at the cursor position. PF4: Deletes the rest of the line at the cursor position. Gold Keypad 2: Deletes up to the end of the line at the cursor position. Undeletion: Gold Keypad ,: Undeletes the last deleted character. Gold Keypad -: Undeletes the last deleted word. Gold PF4: Undeletes the last deletes line. Gold U: Moves the cursor to the end of the undeleted entity. Cut: Keypad .: Selects the cursor position. Gold Keypad .: Cancels Select. Keypad 6: Cuts from the cursor to the selected position. Paste: Gold Keypad 6: Pastes the latest Cut at the cursor position. The cursor is left at the beginning of the text. Gold U: Moves the cursor to the end of the pasted text. Substitution: Gold Keypad 9 Enter Enter: Substitutes the next ocurrence of in the default direction with . If either string is empty the previous value will be used. Searching changes the value of to be the search string. The search starts at the current possition, which enables you to selectively substitute by hitting Search and then hitting Substitute if you want to substitue that particular occurrence. Keypad 9 or Gold Enter: Makes a substitution using the default values for and . Tabulation: Gold Gold T: Will set a tab stop at the column number entered. Gold 0 Gold T: Will clear all tab stops. Tab: If the cursor is a column 1 and an indentation level is set, the cursor will be indented. If tab stops have been set, the cursor will be positioned at the next stop, otherwise a TAB character will be inserted. Indentation: Control A: Sets the indentation to the current cursor column. Gold L: Sets the indentation to a specific column. The column number is prompted for. Control D: Decrements indentation by one column. Control E: Increments indentation by one column. Gold Control D|E: Increments or decrements indentation by columns. Tab: If the cursor is at the beginning of a line TAB will indent to the current indentation. At all other cursor position TAB go to the next tab stop. Tab stops are either every 8 characters or the manually set stops. Wrapping: Gold R: Sets the right margin to a specific column. The column number is prompted for. When characters are inserted and the right margin is exceeded, Sedt will insert a carriage return and indent to the indentation level set. Filling: Gold Pad 8: Fills the select region. All text is fitted between the left and right margins. Buffers: Gold B: Selects an editing buffer. The buffer number is prompted for. Buffer number 1 is the one containing the original file. Gold F saves the file in buffer number 1. Buffer numbers range from 1 to 5. Each buffer has it's own select pointer and marks. When a buffer has been selected, Gold I will normally be used to read a file intoo the buffer File Handling: Gold I: Include a file at this point. The filename is prompted for. Gold S: Save the contents of the current buffer in a file. The filename if prompted for. If no filename is entered and the buffer is number 1 the output will be written to the default output file. Gold E: Load a new file into Sedt. The filename is prompted for. The name of the new file will also become the output file name. If no filename is entered, the original file will be used. Gold O: Define a new output file. The file name is prompted for. The contents of the buffer is not written until a Gold F or Gold S is entered. Miscellaneous commands: PF2: Gold PF2: Prints the current programming of all keys and gives a short summary of all programming commands. Gold Keypad 1: Changes the case of the character at the cursor position and moves the cursor one character forward. Control C: Attempts to abort the current operation and refreshes the screen. Control K Enter: Programs to the commands given in . The current programming of keys can be used by hitting those keys when entering . The final character in must be a . if the key is to take immediate effect when hit. Control W: Refreshes the screen. Control Z: Works the same as Gold Keypad 7. Gold C: Centers the current line if right margin is set. Gold D: Inserts the current date and time Gold I: Includes the contents of a file at the cursor position. The Filename is prompted for. Gold N: Puts a VT100 or VT200 type terminal in 80 column mode and refreshes the screen. Gold W: Puts a VT100 or VT200 type terminal in 132 column mode and refreshes the screen. Gold Z: Clears the editing buffer. Gold ?: Prints the status of Sedt on the screen. Some hints about using Sedt: The most efficient use of Sedt is to use the KSedt command. Subsequent edits will be done without reinitialization of the editor. When you need to edit a new file you shoould use the KSED command without arguments to reenter the editor, and then use the Gold E command to load a new file. If you need data from another file, use the Gold B command to select a different buffer, get the file with Gold I, and select and cut the data you need. If you need another file, you can use the same buffer after clearing it with Gold Z. Do not set autowrapping with Gold R unless you intend to use it. Sedt will insert text faster with autowrap off. If you are at a point you later would like to return to, you should mark it with Gold M, and return to it with Gold G. This is many times faster than searching. Searching forward is much faster than searching backward. It is usually faster to go to the beginning of the file and searching forward, unless you know that you are reasonably close to the object. If you need to type the same sequence of keys numerous times you should define a key to be that sequence. Hit Control K, then the key sequence, followed by . and Enter. If you prefer a keypad layout that is different from the standard setting, you can save the definitions in a file by hitting Gold Keypad 7 KS/Filename/ Enter. The saved definitions can be loaded either by using the /command= qualifyer, or by entering Gold Keypad 7 TAK/Filename/ Enter. If you intend to use the file often, you should remove the standard definitions from the file.