INDEX TO TECO V36 COMMANDS AND SPECIAL CHARACTERS Page numbers are for LB:[10,1]TECO.DOC NULL Discarded on input; Ignored in commands . 100 ^A Output message to terminal . . . . . . . 51 ^B Current date . . . . . . . . . . . . . . 76 ^C Stop execution . . . . . . . . . . . . . 33, 42, 84 ^D Set radix to decimal . . . . . . . . . . 73 ^E Form Feed flag . . . . . . . . . . . . . 76 ^E (Match char) Match ASCII code n . . . . . 66 ^E[] (Match char) Match one of list . . . . . 67 ^EA (Match char) Match alphabetics . . . . . 66 ^EB (Match char) Match separator char . . . . 66 ^EC (Match char) Match Symbol Constituent . . 66 ^ED (Match char) Match numerics . . . . . . . 66 ^EGq (Match char) Match contents of Q-reg q . 66 ^EL (Match char) Match line terminators . . . 66 ^EMx (Match char) Match any number of x . . . 66 ^EQq (String char) Use contents of Q-reg q . . 65 ^ER (Match char) Match alphanumerics . . . . 66 ^ES (Match char) Match non-null space/tab . . 66 ^EUq (String char) Use ASCII code in Q-reg q . 65 ^EV (Match char) Match lower case alphabetic 66 ^EW (Match char) Match upper case alphabetic 66 ^EX (Match char) Match any character . . . . 66 ^F Contents of console switch register . . . 76 n^F Return terminal number of job n . . . . . 76 ^G^G Kill command string . . . . . . . . . . . 34 ^G Retype current command line . . . . . . . 34 ^G* Retype current command input . . . . . . 34 ^H Current time of day . . . . . . . . . . . 76 BS Back up and type one line . . . . . . . . 35 TAB Insert tab and text . . . . . . . . . . . 57 LF Line terminator; Ignored in commands . . 5, 29, 98 LF Advance and type one line . . . . . . . . 35 VT Line terminator; Not a TECO command . . . 29 FF Page terminator; Output Form Feed . . . . 5, 29 CR End input line; Ignored in commands . . . 5, 34, 98 ^N End of file flag . . . . . . . . . . . . 77 ^Nx (Match char) Match all but x . . . . . . 65 ^O Set radix to octal . . . . . . . . . . . 73 ^O Kill terminal output . . . . . . . . . . 53 ^P Not a TECO command . . . . . . . . . . . 178 ^Q Resume terminal output . . . . . . . . . 53 ^Q Convert line arg into character arg . . . 118, 122 ^Qx (String char) Use x literally . . . . . . 64 ^R Value of current radix . . . . . . . . . 73 n^R Set radix to n . . . . . . . . . . . . . 73 ^Rx (String char) Use x literally . . . . . . 64 ^S -(length) of last referenced string . . . 77 ^S Suspend terminal output . . . . . . . . . 53 ^S Save last command string . . . . . . . . 121 ^S (Match char) Match separator char . . . . 65 ^T ASCII value of next character typed . . . 77 n^T Output ASCII character of value n . . . . 51 ^U Kill command line . . . . . . . . . . . . 33 ^Uq Put string into Q-register q . . . . . . 68 :^Uq Append string to Q-register q . . . . . . 68 n^Uq Put ASCII char "n" into Q-register q . . 69 n:^Uq Append ASCII char "n" to Q-register q . . 69 ^V Enable lower case conversion . . . . . . 101 ^Vx (String char) Force x to lower case . . . 64 ^W Enable upper case conversion . . . . . . 101 ^Wx (String char) Force x to upper case . . . 64 ^X Search mode flag . . . . . . . . . . . . 94 ^X (Match char) Match any character . . . . 65 ^Y Equivalent to ".+^S,." . . . . . . . . . 77 ^Z Size of text in all Q-registers . . . . . 77 ^Z^Z^Z Immediate exit from TECO . . . . . . . . 34 ESC String and command terminator . . . . . . 3, 33, 84, 100 ^[ String and command terminator . . . . . . 100 ^\ Not a TECO command . . . . . . . . . . . 178 ^] Not a TECO command . . . . . . . . . . . 178 ^^x ASCII value of x . . . . . . . . . . . . 77 ^_ Ones complement (logical NOT) . . . . . . 72 SP Ignored in commands . . . . . . . . . . . 98 ! Define label . . . . . . . . . . . . . . 80 " Start conditional . . . . . . . . . . . . 85 n"< Test for less than zero . . . . . . . . . 86 n"= Test for equal to zero . . . . . . . . . 86 n"> Test for greater than zero . . . . . . . 86 n"A Test for alphabetic . . . . . . . . . . . 85 n"C Test for symbol constituent . . . . . . . 85 n"D Test for numeric . . . . . . . . . . . . 86 n"E Test for equal to zero . . . . . . . . . 86 n"F Test for false . . . . . . . . . . . . . 86 n"G Test for greater than zero . . . . . . . 86 n"L Test for less than zero . . . . . . . . . 86 n"N Test for not equal to zero . . . . . . . 86 n"R Test for alphanumeric . . . . . . . . . . 86 n"S Test for successful . . . . . . . . . . . 86 n"T Test for true . . . . . . . . . . . . . . 86 n"U Test for unsuccessful . . . . . . . . . . 86 n"V Test for lower case . . . . . . . . . . . 86 n"W Test for upper case . . . . . . . . . . . 86 # Logical OR . . . . . . . . . . . . . . . 72 $ Separate TECO commands . . . . . . . . . 100 n%q Add n to Q-register q and return result . 68 & Logical AND . . . . . . . . . . . . . . . 72 ' End conditional . . . . . . . . . . . . . 85 ( Expression grouping . . . . . . . . . . . 72 ) Expression grouping . . . . . . . . . . . 72 * Multiplication . . . . . . . . . . . . . 72 *q Save last command in Q-register q . . . . 35 + Addition . . . . . . . . . . . . . . . . 72 , Argument separator . . . . . . . . . . . 72 - Subtraction or negation . . . . . . . . . 72 . Current pointer position . . . . . . . . 75 / Division . . . . . . . . . . . . . . . . 72 / Type detailed explanation of error . . . 35 0-9 Digit . . . . . . . . . . . . . . . . . . 178 : Modify next command . . . . . . . . . . . 28 ; Exit iteration on search failure . . . . 82 n; Exit iteration if n is positive . . . . . 82 :; Exit iteration on search success . . . . 82 n:; Exit iteration if n is negative . . . . . 82 n< Iterate n times . . . . . . . . . . . . . 79 = Type in decimal . . . . . . . . . . . . . 73 == Type in octal . . . . . . . . . . . . . . 73 === Type in hexadecimal . . . . . . . . . . . 73 := Type in decimal, no carriage return . . . 73 :== Type in octal, no carriage return . . . . 73 :=== Type in hexadecimal, no carriage return . 73 > End iteration . . . . . . . . . . . . . . 79 ? Toggle trace mode . . . . . . . . . . . . 100 ? Type out command string in error . . . . 35 . @ Modify next text argument . . . . . . . . 28 A Append to buffer . . . . . . . . . . . . 47 nA ASCII value of char in buffer . . . . . . 75 n:A Append n lines to buffer . . . . . . . . 47 B 0 - beginning of buffer . . . . . . . . . 75 nC Advance n characters . . . . . . . . . . 49 nD Delete n characters . . . . . . . . . . . 54 m,nD Delete between m and n . . . . . . . . . 54 E%q Write Q-register q into a file . . . . . 46 nE_ Search without yank protection . . . . . 60 EA Select secondary output stream . . . . . 43 EB Open input and output . . . . . . . . . . 38 EC Close out (copy in to out and close) . . 40 ED Edit mode flag . . . . . . . . . . . . . 89 EF Close output file . . . . . . . . . . . . 41 EG Close out and exit with command . . . . . 41 :EG Execute operating system function . . . . 41, 120-121 EH Help level flag . . . . . . . . . . . . . 91 EI Open indirect command file . . . . . . . 43 m,nEJ Set environment characteristics . . . . . 88 nEJ Return environment characteristics . . . 87 EK Kill output file . . . . . . . . . . . . 42 EL Open log file . . . . . . . . . . . . . . 42 nEM Position magtape . . . . . . . . . . . . 121 EN Wildcard lookup . . . . . . . . . . . . . 45 EO Version of TECO . . . . . . . . . . . . . 78 nEO Set TECO to function as version n . . . . 91 EP Select secondary input stream . . . . . . 43 EQq Read file into Q-register q . . . . . . . 45 ER Open input file . . . . . . . . . . . . . 38, 43 ES Search verification flag . . . . . . . . 91 ET Type out control flag . . . . . . . . . . 92 EU Case flagging flag . . . . . . . . . . . 93 EV Edit verify flag . . . . . . . . . . . . 94 EW Open output file . . . . . . . . . . . . 39, 43 EX Close out and exit . . . . . . . . . . . 42 EY Read without yank protection . . . . . . 48 EZ Zero output tape . . . . . . . . . . . . 42 nF_ Destructive search and replace . . . . . 61 F' Flow to end of conditional . . . . . . . 83 F< Flow to start of iteration . . . . . . . 83 F> Flow to end of iteration . . . . . . . . 83 F| Flow to ELSE part of conditional . . . . 83 m,nFB Search between locations m and n . . . . 60 nFB Search, bounded by n lines . . . . . . . 60 m,nFC Search and replace between m and n . . . 61 nFC Search and replace over n lines . . . . . 61 nFD Search and delete string . . . . . . . . 54, 62 nFK Search and delete intervening text . . . 55, 62 nFN Global string replace . . . . . . . . . . 61 FR Replace last string . . . . . . . . . . . 57 nFS Local string replace . . . . . . . . . . 61 Gq Get string from Q-register q into buffer 70 G* Get last filespec string into buffer . . 117 G_ Get last search string into buffer . . . 118 :Gq Type Q-register q on terminal . . . . . . 70 H Equivalent to "B,Z" . . . . . . . . . . . 75 I Insert text . . . . . . . . . . . . . . . 56 nI Insert ASCII character "n" . . . . . . . 56 nJ Move pointer to "n" . . . . . . . . . . . 49 nK Kill n lines . . . . . . . . . . . . . . 54 m,nK Delete between m and n . . . . . . . . . 55 nL Advance n lines . . . . . . . . . . . . . 50 Mq Execute string in Q-register q . . . . . 70, 76 nN Global search . . . . . . . . . . . . . . 59 O Go to label . . . . . . . . . . . . . . . 80 nO Computed goto . . . . . . . . . . . . . . 81 nP Advance n pages . . . . . . . . . . . . . 48 m,nP Write out chars m to n . . . . . . . . . 48 nPW Write buffer n times . . . . . . . . . . 48 m,nPW Write out chars m to n . . . . . . . . . 48 Qq Number in Q-register q . . . . . . . . . 70, 76 :Qq Size of text in Q-register q . . . . . . 70, 76 nR Back up n characters . . . . . . . . . . 50 nS Local search . . . . . . . . . . . . . . 59 m,nS Search for nth occurrence within m chars 117 ::S Compare string . . . . . . . . . . . . . 60 nT Type n lines . . . . . . . . . . . . . . 51 m,nT Type from m to n . . . . . . . . . . . . 51 nUq Put number n into Q-register q . . . . . 68 nV Type n current lines . . . . . . . . . . 51 m,nV Type m before & n after current line . . 51 W Scope "WATCH" . . . . . . . . . . . . . . 95 n:W Return scope characteristics . . . . . . 96, 118 m,n:W Set scope characteristics . . . . . . . . 97 nXq Put n lines into Q-register q . . . . . . 69 m,nXq Put characters m to n into Q-register q . 69 n:Xq Append n lines to Q-register q . . . . . 69 m,n:Xq Append characters m to n into Q-register q 69 Y Read into buffer . . . . . . . . . . . . 48 Z End of buffer value . . . . . . . . . . . 75 [q Q-register push . . . . . . . . . . . . . 71 \ Value of digit string in buffer . . . . . 74, 76 n\ Convert n to digits in buffer . . . . . . 74 ]q Q-register pop . . . . . . . . . . . . . 69 n_ Global search without output . . . . . . 60 ` Not a TECO command . . . . . . . . . . . 178 a-z Treated the same as upper case A-Z . . . 178 { Not a TECO command . . . . . . . . . . . 178 | Start ELSE part of conditional . . . . . 85 } Not a TECO command . . . . . . . . . . . 178 ~ Not a TECO command . . . . . . . . . . . 178 DEL Delete last character typed in . . . . . 33