User Tools

Site Tools


survival_teco

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
survival_teco [2021/03/21 15:03] – [References] hc9survival_teco [2023/06/29 19:34] (current) – [Survival TECO] add "use" hc9
Line 4: Line 4:
  
   * Commands are executed by following them with the key sequence **Esc Esc** instead of **Enter**. An arbitrarily long sequence of commands can be entered and executed together.   * Commands are executed by following them with the key sequence **Esc Esc** instead of **Enter**. An arbitrarily long sequence of commands can be entered and executed together.
-  * TECO doesn't file name arguments passed on the command line. Instead, after starting TECO you have to specify the input and/or output file with the commands **ER**, **EW**, or **EB**, then read the input file into the edit buffer with the command **Y**.+  * TECO doesn'use file name arguments passed on the command line. Instead, after starting TECO you have to specify the input and/or output file with the commands **ER**, **EW**, or **EB**, then read the input file into the edit buffer with the command **Y**.
   * TECO considers files containing form-feed characters (ASCII 0x0b, **^L**) to be composed of multiple pages with each page consisting of the text between form-feed characters or the beginning or end of the file. TECO will only read into the buffer and edit one page at a time. To edit a multi-page file, complete editing on the first page then use the **P** command to save the page to the output file, reinitialize the buffer, and read the next page from the input file. Once a page has been saved with the **P** command, it may not be revisited except by saving the entire file and restarting the editing process from the beginning. Repeat the process until all necessary pages have been edited. The **EX** command automatically copies any unedited pages in the input file to the output file before exiting.   * TECO considers files containing form-feed characters (ASCII 0x0b, **^L**) to be composed of multiple pages with each page consisting of the text between form-feed characters or the beginning or end of the file. TECO will only read into the buffer and edit one page at a time. To edit a multi-page file, complete editing on the first page then use the **P** command to save the page to the output file, reinitialize the buffer, and read the next page from the input file. Once a page has been saved with the **P** command, it may not be revisited except by saving the entire file and restarting the editing process from the beginning. Repeat the process until all necessary pages have been edited. The **EX** command automatically copies any unedited pages in the input file to the output file before exiting.
  
-^ File I/O and Termination ^^+ File I/O and Termination  ^^
 | EB//file//**Esc** | Open //file// for **B**oth input and output | | EB//file//**Esc** | Open //file// for **B**oth input and output |
 | ER//file//**Esc** | Open //file// for **R**ead-only (input) | | ER//file//**Esc** | Open //file// for **R**ead-only (input) |
Line 15: Line 15:
 | EX | Write buffer to output file and **EX**it | | EX | Write buffer to output file and **EX**it |
 | **^C ^C** | Abandon buffer changes and exit | | **^C ^C** | Abandon buffer changes and exit |
-^ Movement ^^+ Movement  ^^
 | [//n//]C | Move one///n// **C**haracter(s) forward | | [//n//]C | Move one///n// **C**haracter(s) forward |
 | -[//n//]C\\ [//n//]R | Move one///n// **C**haracter(s) backward (**R**everse) | | -[//n//]C\\ [//n//]R | Move one///n// **C**haracter(s) backward (**R**everse) |
Line 24: Line 24:
 | [//n//]J | **J**ump to first///n//+1 character in buffer | | [//n//]J | **J**ump to first///n//+1 character in buffer |
 | ZJ | **J**ump to end of buffer | | ZJ | **J**ump to end of buffer |
-^ Display ^^+ Display  ^^
 | [//n//]T | **T**ype from current position to end of current///n//-1 following line(s) | | [//n//]T | **T**ype from current position to end of current///n//-1 following line(s) |
 | 0T | **T**ype from beginning of line to curent position | | 0T | **T**ype from beginning of line to curent position |
 | -[//n//]T | **T**ype one///n// preceding line(s) and current line up to position | | -[//n//]T | **T**ype one///n// preceding line(s) and current line up to position |
 | HT | **T**ype whole buffer | | HT | **T**ype whole buffer |
-^ Useful Combinations ^^+ Useful Combinations  ^^
 | 0TT | Type current line (current position unchanged) | | 0TT | Type current line (current position unchanged) |
 | 0LT | Type current line, moving position to beginning of line | | 0LT | Type current line, moving position to beginning of line |
-^ Insertion ^^+ Insertion  ^^
 | I//text//**Esc** | **I**nsert //text// at current position | | I//text//**Esc** | **I**nsert //text// at current position |
-^ Deletion ^^+ Deletion  ^^
 | [//n//]D | **D**elete one///n// character(s) after position | | [//n//]D | **D**elete one///n// character(s) after position |
 | -[//n//]D | **D**elete one///n// character(s) before position | | -[//n//]D | **D**elete one///n// character(s) before position |
Line 42: Line 42:
 | :K | Delete from position to end of current line leaving end-of-line | | :K | Delete from position to end of current line leaving end-of-line |
 | HK | Delete whole buffer | | HK | Delete whole buffer |
-^ Search/Replace ^^+ Search/Replace  ^^
 | [//n//]S//text//**Esc** | **S**earch for next///n//th occurrence of //text// | | [//n//]S//text//**Esc** | **S**earch for next///n//th occurrence of //text// |
 | [//n//]FS//text1//**Esc**//text2//**Esc** | Replace next///n//th occurrence of //text1// with //text2// | | [//n//]FS//text1//**Esc**//text2//**Esc** | Replace next///n//th occurrence of //text1// with //text2// |
-^ Copy/Paste ^^+ Copy/Paste  ^^
 | [//n//]X//q// | Copy from position through end of current///n//-1 following line(s) to register //q// (single character A-Z, 0-9) | | [//n//]X//q// | Copy from position through end of current///n//-1 following line(s) to register //q// (single character A-Z, 0-9) |
 | G//q// | Insert text in register //q// into buffer at current position | | G//q// | Insert text in register //q// into buffer at current position |
Line 57: Line 57:
 ---- ----
  
-| Edited with | **TECO** |+<nowiki>|Edited with|</nowiki>**TECO**|
  
 $Id: survival-teco.html,v 1.4 2010/06/12 09:44:01 papa Exp $ [[http://sdf.org/?tutorials/survival-teco|Survival TECO]] - traditional link (using [[wp>Revision_Control_System|RCS]]) $Id: survival-teco.html,v 1.4 2010/06/12 09:44:01 papa Exp $ [[http://sdf.org/?tutorials/survival-teco|Survival TECO]] - traditional link (using [[wp>Revision_Control_System|RCS]])
  
survival_teco.1616339034.txt.gz · Last modified: 2021/03/21 15:03 by hc9