.MACRO KEYPAD GOLD P FILL PARAGRAPH !-------!-------!-------!-------! GOLD R REVERSE LINE ! PF1 ! PF2 ! PF3 ! ^ ! GOLD S SAVE FILE ! GOLD !NXTPAGE!FNDNEXT! ! ! GOLD W WRITE SELECT ! !LASTPAG! FIND ! ! ! GOLD F END !-------!-------!-------!-------! GOLD G INSERT DISK FILE ! "7" ! "8" ! "9" ! ! ! GOLD M ENTER SETUP MENU !FNDLAST!SWAPCHR! APPEND! ! ! CTRL/A EXIT !SEARCHB!SWAPLIN!SPCINS ! V ! CTRL/D DELETE LINE !-------!-------!-------!-------! CTRL/E EXECUTE MACRO ! "4" ! "5" ! "6" ! ! CTRL/F NEXT WORD ! BOTTOM! TOP ! PASTE ! ----> ! CTRL/G SAVE LINE ! FILL !CENTER !ZAPSEL ! ! CTRL/P REPRINT PAGE !-------!-------!-------!-------! CTRL/U ERASE LINE ! "1" ! "2" ! "3" ! ! CTRL/V SET PARAMETERS ! WORD ! EOL ! CUT ! <---- ! CTRL/W UNSAVE LINE !LSTWORD! DELEOL!CHCASE ! ! CTRL/X READ MACRO !-------!-------!-------!-------! CTRL/Y REPRINT LINE ! "0" ! "." ! ! BACKSP EOL/START OF LINE ! BEGINLINE ! SELECT! ENTER ! ! INSLINE ! INSOFF! ! !---------------!-------!-------! .ENDM .MACRO UP Cursor up ("Uparrow" key) Cursor Up - Moves the cursor up one line. Pagetop (PF1 + "Uparrow") Hitting the 'GOLD' key and then the Uparrow key moves the cursor to the top of the page. Page_restore (PF1 PF1 Uparrow) By typing the GOLD key twice, followed then by the Uparrow key will restore the page marked previously with GOLD GOLD Downarrow. Any 'repeat' count in the range 1 to 7 will select the corresponding saved page mark, as in GOLD 6 GOLD GOLD Up would restore the page and line saved by a previous GOLD 6 GOLD GOLD Down .ENDM .MACRO DOWN Cursor down ("Downarrow" key) Cursor Down - Moves the cursor down one line. Pageend (PF1 + "Downarrow") Hitting the 'GOLD' key and then the Downarrow key moves the cursor to the bottom of the current page. Mark_currentpage (PF1 PF1 Downarrow) Typing the GOLD key twice following by the downarrow key will mark the current line to be later restored via GOLD GOLD Uparrow. As in Page_restore (Gold Gold Up), any active 'repeat' count (GOLD digit) will select different markers from one to 7, as in GOLD 6 GOLD GOLD Down. GOLD V (for View_markers) will display all the current marked pages (and lines). .ENDM .MACRO LEFT Left ("Leftarrow" key) Cursor Left - Moves the cursor left by one character position. .ENDM .MACRO RIGHT Right ("Rightarrow" key) Cursor Right - Moves the cursor right by one character position. Sentence (PF1 + "Rightarrow") If the Rightarrow key is pressed following the 'GOLD' key, the cursor is moved forward through the file by sentences. (A sentence is defined as a period followed by any non-alphanumeric character.) .ENDM .MACRO ZERO Begin line ("0") Typing the '0' key when in keypad mode will cause a cursor to move to the start of the current line. Break line (PF1 + "0") The '0' key, when preceeded by the 'GOLD' key, causes a CR/LF to be inserted at the current cursor position. .ENDM .MACRO ONE Word ("1") The '1' key will move the cursor to the next word (see ^F). Lstword (PF1 + "1") The '1' key, when preceeding by typing the 'PF1' key, will cause the cursor to move to the end of the previous word (see ^R). .ENDM .MACRO TWO Eol ("2") The '2' key moves the cursor to the end of the current line. Deleol (PF1 + "2") Deletes from cursor to the end of the line. Entered as PF1 2. (GOLD 2) .ENDM .MACRO THREE Cut ("3") The '3' key starts the marking of lines for saving in the paste buffer. Lines are marked by then typing the down arrow key until the last line to be saved is passed. The '.' key is then typed to actually save the lines. The lines are then retrieved by typing the '6' key. Chcase (PF1 + "3") Typing GOLD and then the 3 key causes all upper case characters to be changed to lower case characters when the 'WORD (1)' or 'EOL (2)' keypad keys are typed. Only those characters skipped by the command (EOL or WORD) will be affected. CHCASE mode can be turned off ONLY by typed GOLD and '3' again, thus CHCASE is toggled. .ENDM .MACRO FOUR Bottom ("4") The '4' key causes a movement to the end of the file. Fill (PF1 + "4") Typing GOLD and then the 4 key will cause the text on the current line to be expanded with spaces out to the current fill margin (see /FILL:N). The fill margin defaults to 72, and can be changed by typing ^V and then, after the 'SET>' prompt, the string FILL:value , where 'value' is the decimal value for the new fill margin. .ENDM .MACRO FIVE Top ("5") The '5' key is top of file (line 1). Center (PF1 + "5") The '5' key, when typed immediately after the PF1 key is typed, centers the current line based upon the current fill (see GOLD M or Control V). The center line should not contain embedded tabs. .ENDM .MACRO SIX Paste ("6") The '6' key inserts text saved by the 'cut (3)' key. Zapsel (PF1 + "6") The '6' key, when typed immediately after the PF1 key is typed, erases the contents of the paste buffer. .ENDM .MACRO SEVEN Findlast ("7") The '7' key is used to locate a text pattern in the file and move backwards to that page if the pattern is found. The search is from the current line to the first line of the file, a reverse search. The search uses the previous search pattern, if present. SearchB (PF1 + "7") The '7' key, when typed immediately after the PF1 key is typed, does a search but from the current line to the begining of the file instead of to the end of the file. Entered as PF1 7 from the keypad. .ENDM .MACRO EIGHT SwapCHR ("8") By typing the 8 key, the character at the current cursor position will be swapped with the next one if neither of them are line terminators. SwapLIN (PF1 + "8") By typing the PF1 key and then typing the "8" key, the current line will be swapped with the next line of the file. It is an error if the current line is the last line in the file. Entered as GOLD 8. .ENDM .MACRO NINE Append("9") The '9' key appends the current line to the paste buffer. This is the only way to store lines that are not adjacent into the paste buffer. Spcins("9") Inserts the ASCII character whose value is given in the previous GOLD digits command. Entered as GOLD digits GOLD 9, as follows: All keypad commands (except beginline "0") can be repeated from one to 999 times by setting a repeat count with the command sequence GOLD (which is PF1) followed by a string of 1 to 3 digits. The numbers will be echoed on the last line of the display. The entering of this repeat count is stopped by typing anything other than a rubout or a digit. The 'repeat count' is one-shot, it is ALWAYS cleared any each control character or KEYPAD command. It is also cleared if anything other than a command is typed after setting the repeat count. This is also used for SPSINS, in which case the value is converted to the ascii representation and placed into the current line. A repeat count of '*' (typed GOLD *) is an infinite count, except for DELLINE (PF4 or ^D) in which case all lines to the end of the page are deleted. .ENDM .MACRO PF1 GOLD This is the key that shifts other keys to their gold functions GOLD A\ Typing PF1 followed by the letter A will move the current left margin to the current position in the line. GOLD D\ GOLD D is equivalent to a cut and delete of a select range. GOLD G\ Typing PF1 and then G will insert a file at the current line. GOLD L\ Typing PF1 followed by L will toggle the macro 'learn' feature. If not on, then all input following will be saved, otherwise 'learn' will be turned off. The saved text is executed by ^E. GOLD M\ This gets you into a menu where various parameter can be set. GOLD P\ This will fill the current paragraph (from the current line to the next blank line) out to the current right margin (fill). See Gold M or control V for setting the margin. Default 72. A repeat count will always override the current fill factor. If there is a left margin (GOLD A), all text will be aligned. GOLD GOLD P is the same as GOLD P but without the right justi- fication of the text. GOLD Q\ QUEUE the current select range or page to a print spooler GOLD R\ This command is rather whimsical in that all it does is swap the current line around (GOLD REVERSE). GOLD S\ This is the same as the SAVE command outside of the VT command & GOLD T\ This inserts the current date and time into the current line GOLD U\ The same as ctrl U, it erases the current line. See also UNDEL GOLD V\ Gold V will display all the saved page markers along with the text of the line that is (was) at that line number. See HELP for Uparrow and Downarrow for more information. GOLD W\ This dumps the current 'select' range out to a disk file. The range is defined as being the lines from the time the select command was given up to and including current line. GOLD X\ This is the same as control X, it will cause a macro to be read from the terminal. GOLD digits\ This sets the command repeat count. The 'repeat' count will be interpreted in several ways depending on the next command. Normally it is simply a count of how many times to execute the next command. Certain commands line SPCINS (GOLD 8), Paragraph (GOLD P) and Page_Mark (GOLD GOLD Downarrow) use this value to respectively insert the ascii equivalent character, alter the right margin and overide the default marker buffer. Example: GOLD 6 A would cause six 'A's to be inserted into the current line. GOLD 3 Downarrow would move the cursor down 3 lines. .ENDM .MACRO PF2 PF2,control P, GOLD PF2 Next page, reprint current page and previous page respectively. .ENDM .MACRO PF3 Fndnext (PF3) FINDNEXT (PF3) does a search to the next occurance of a previous search string, moving the cursor to sit on the first character of the string found (if found). The search is from the current line and cursor posi- tion to the end of the file. The search pattern can be loaded by using the 'FIND' command or by typing GOLD ENTER. Find (Gold + PF3) FIND (GOLD PF3) finds the next occurance of a string from the current line to the end of the file. .ENDM .MACRO PF4 DELLINE (PF4) UNDELL (GOLD PF4) Deletes the current line or word. DELLINE is the same as Control D Undeleteline (GOLD PF4) recovers the most recently deleted line. Delline can be modifed in two ways. The first is to enter a repeat count to delete N lines (or a * to delete to end of page). The other option is to start a select range (by typing the keypad key 3) and then moving down until you have moved past the last line to be deleted. Typing PF4 will then delete the entire range of lines. .ENDM .MACRO DASH DELWORD ("-") UNDELWORD (PF1 + "-") Delword deletes up to the start of the next word. Undeleteword recovers the most recent delete. .ENDM .MACRO COMMA DELCHAR (",") UNDELCH (PF1 + ",") Same as rubout, except that at EOL, merges with the next line. UNDELCH restores the most recently deleted character. Entered as , or GOLD ,. .ENDM .MACRO ENTER Replace ("enter") Same as control N (^N). Causes a search and replace for page. SETPAT (gold enter) Sets the next pattern for FINDNEXT (PF3) .ENDM .MACRO PERIOD Gold + "." Typing this will cause all following characters to replace characters rather than to be inserted into the current line. This is automatically disabled by any keypad command or by reaching eol. This command acts like a toggle. Entered as 'PF1 .' on the keypad. .ENDM .MACRO CTRLA Control A (^A) Control A causes the VTEDIT function to terminate and returns the user to the normal command prompting mode. All changes are of course saved. .ENDM .MACRO CTRLB Control B (^B) Control B causes the displayed page to be the last page in the file (end of file). .ENDM .MACRO CTRLC Control C (^C) Control C works the same as ^A with the abort message displayed. .ENDM .MACRO CTRLD Control D (^D) Control D deletes the current line. 'Current' is the line that cursor is presently on. All lines after the deleted line will be reprinted. Multiple lines (1-9) can be deleted at one time by preceding this command with an 'escape digit' sequence, saving much time in display reprinting. .ENDM .MACRO CTRLE Control E (^E) Control E will cause the text saved by either the control W or control X commands to be executed as a command stream. At the end of this text, input is reset back to the keyboard. This provides a simple macro-command type facility since control sequences can be stored and executed. Additionally, by preced- ing this command with the 'escape digit' you can repeat the commands 1 to 999 times, as in GOLD 4 ^E. .ENDM .MACRO CTRLF Control F (^F) Control F will cause the cursor to move forward to the next word in the current line, stopping at the end of the line. .ENDM .MACRO CTRLG Control G (^G) Control G is like control E, but only causes the saved text to be inserted into the current line. It is thus much faster than using the control E command. (see text for control X and control W). This command can be modified by preceding it with the 'GOLD digit' sequence (digit is 1-6) which causes the text to be retrieved from different save areas (there are seven, the default and 1-6). .ENDM .MACRO CTRLH Control H Typing the backspace key moves the cursor to the end of the current line. If the cursor is at the end of the line, the cursor will move back to begining of the line. .ENDM .MACRO CTRLK Control K Typing the control K combination will cause all the characters from the current cursor position to the next 'word' (see PF1) to to be deleted. This will be much faster than holding down the rubout key. .ENDM .MACRO CTRLN Control N Control N is a find and replace command. It will replace all occurances of the text with new text from the current line down to the end of the page. .ENDM .MACRO CTRLP Control P Control P reprints the VT100 top header line and screen. .ENDM .MACRO CTRLR Control R Control R is the opposite of control F in that the cursor will move backwards to the previous word in the line, stopping at the left margin. .ENDM .MACRO CTRLT Control T Control T causes the page to move to the top of the file at line one. .ENDM .MACRO CTRLU Control U Control U erases (but does not delete) the current line. .ENDM .MACRO CTRLV Control V Control V allows you to change the parameters passed as command switches, or simply to set values, such as turning line numbering off (/NOLINE) or moving to a given line number (/PAG:300). Control V parameters: /NOL 'nolinenumbers' Do not print line numbers out /LIN 'linenumbers' Print line numbers (default) /UPP 'uppercaseonly' Translate all KB input to upper /LOW 'lowercase' Allow lower case input(default) /VT52 say our terminal is a DEC VT52 (or Heath H19) /VT100 say our terminal is a DEC VT100 (the default) /PAG:n Start initial page at line 'n', not at line 1 /KED enable keypad special editing mode (default) /PDEL enable normal rubout key movement /FIL:n set fill line length to value in 'n' /WRAP enable auto line wraparound for kb input .ENDM .MACRO CTRLW Control W Control W saves all the text in the current line into the text save area. Line terminators are not included. Multiple save areas can be specified by using the 'escape digit' sequence prior to this. See the above text for control G. .ENDM .MACRO CTRLX Control X Control X loads the text save area from the keyboard. See help for control E and control G. .ENDM .MACRO CTRLY Control Y Control Y can be used to fake a carriage return for storing commands with the control X command. This is useful if a command sequence for say, text replacement (^N) is to be stored and later executed with the control E command. If typed any other time, it will simply reprint the current line. .ENDM .MACRO CTRLZ The use of control Z Line insert mode is entered automatically by typing a carriage return, line feed or form feed (^L). The screen will be blanked from the line to be inserted down to the end of the page. Insert mode is terminated by typing a control Z (^Z) instead of a to finish off a line. This is also stopped by most of the keypad commands. The left arrow, right arrow and rubout keys will continue to operate normally in this mode. The other defined control characters (E, F, G, H, P, R, U, W, X, and backspace) will operate normally. In general, any command that would cause the current line to change will reset this. The control V set commands 'WRAP', 'NOWRAP' and 'FILL:decvalue' alter the way insertion mode works for text entry. If 'WRAP' is set a line break is done automatically when the fill margin is reached, which defaults to 72. NOWRAP will disable this feature and is the default. An alternative to the blanking of the screen and sticking in 'insert' mode is the parameter 'PRINT' , set by either using ^V or GOLD M. This, when set, will cause a cr/lf simply to start a new line VTEDIT style. .ENDM