vintage_systems:survival_teco
Table of Contents
Survival TECO
Version 3.0
Learning to speak a little TECO can be really useful to edit files on old DEC and related systems.
Rules
- Pressing the Escape key (displayed in TECO and shown below as $ — that's not a dollar key) twice executes typed commands instead of the more familiar Enter key. (A single $ terminates string arguments for some commands.)
- Commands don't have to be executed one-at-a-time. You can type a long series of commands then $ $ and TECO will execute the commands in order.
- TECO is character-oriented, so it remembers the character position of your current location in the file, called “pointer”. Most commands display or change the file's contents at pointer, or move pointer to another location in the file.
Commands
1. | ER file$Y 1 | Open file for input and read | 9. | J | Jump to beginning of file |
2. | EW file$1 | Open file for output | 10. | ZJ | Jump to end of file |
3. | EX | Save and exit | 11. | T 3 | Type from pointer to end of line |
4. | ^C ^C | Exit (no save) | 12. | V | Type current line |
5. | C 2 | Move character forward | 13. | D 2 | Delete character at pointer |
6. | R 2 | Move character backward | 14. | K 3 | Delete current line |
7. | L 3 | Move to beginning of next line | 15. | S text$ | Search for text |
8. | I text$ | Insert text | 16. | FS text1$text2$ | Substitute text2 for text1 |
Notes
- Some versions of TECO accept a file name as a command line argument, making
ER
… andEW
… unnecessary. Some versions of TECO have a commandEB
file$Y
that does the same asER
…EW
… in one step. - Numeric prefix (
C
,R
,D
): move/delete multiple characters (negative reverses direction) - Numeric prefix (
L
,T
,K
): move/type/delete multiple lines (negative reverses direction); (T
,K
only) prefixH
: type/delete whole file
Availability
You can use TECO on the following LCM+L systems.
dec-10 | DECSYSTEM-2065 | Invoke TECO with MAKE to create a new file or TECO to edit an old file. |
ki587 | DECsystem-1090 | |
toad2a | TOAD-2 | |
vax780 | VAX-11/785 | EDIT/TECO to create or edit a file with TECO. |
References
- Golden, V. Ellen. An Introduction to ITS for the MACSYMA User. Massachusetts Institute of Technology Laboratory for Computer Science Mathlab Group. 14 April 1981. Accessed 16 Nov. 2017.
- TECO Pocket Guide. Digital Equipment Corporation. 1978. Accessed 16 Nov. 2017.
“You can hack anything you want with TECO …” — sra. Alice's PDP-10
This page is based on Survival TECO Version 2.0 at SDF.
vintage_systems/survival_teco.txt · Last modified: 2017/11/16 09:08 by 127.0.0.1