text stringlengths 0 1.99k |
|---|
]Deleting Text[ |
The TECO text editor makes it easy to delete words, sentences, etc. from |
the buffer. There are two different commands used, line delete, and letter |
delete. |
'K' |
The "K" issued when you choose to delete lines of text from the editing |
buffer. Common forms are as follows: |
K Delete the text from the pointer through the end of the current |
line. |
0K Delete the text from the beginning of the line to through the |
pointer. |
5K Omit the following five lines from the buffer. |
HK Kill the entire contents of the buffer. |
... |
'D' |
The "D" appropriately is used to delete individual characters. A few of the |
forms found are: |
D Delete the character which follows directly after the text pointer. |
5D Delete the following five characters from the text, starting from |
the pointer. |
-1D Delete the character directly behind the pointer. |
... |
]Searching[ |
All good word processors include a routine to search and replace a string |
of text. So does the TECO text editor. Two forms are used, the locate text, |
and the search and replace text commands. |
'S' |
The "S" is used to locate a specified string of text currently in the |
editing buffer. If the text is found, the pointer is positioned directly after |
the specified text. If the string is not found, an error message results and |
the text pointer is placed at the beginning of the buffer. |
S <text> <ESCAPE> |
For example, to locate "This is an example.", enter: |
SThis is an example.$ |
'FS' |
"FS" for find and replace does exactly that. It searches for a specified |
string of text, and if found replaces it with another sting of text. If the |
specified text is not found though, the pointer is positioned at the beginning |
of the buffer just like the "S" command. The "FS" command is of the form: |
FS <old text> <ESCAPE> <new text> <ESCAPE> |
For an example, to replace "hullo" with "hello!", use the command: |
FShullo$hello!$ |
]Saving[ |
To save the new version of the file which you have been editing, you enter |
the exit command and it shall be saved in your directory. Remember though, if |
you wish to quit but not replace a file with your edited version, just type ^C |
twice. |
'EX' |
The "EX" command is used to write the current buffer to the output file, |
then exit from TECO. For example: |
EX$$ |
(Note: Remember that <ESCAPE> is echoed as $, and typing <ESCAPE> twice causes |
a command to be executed.) |
FLAGS |
===== |
The TECO text editor is not limited to the commands already shown. The |
editor has a few flags which can be entered at the * prompt that will modify |
the TECO environment. |
To examine the value of a flag type: |
[flag]x |
Where [flag] is the specified flag and x is a numeric argument which returns |
text. To set the value of a flag enter: |
x[flag] |
Where x is the number or command being specified for the flag [flag]. |
'EH' |
EH is the error handling flag. Here's the table of arguments and their |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.