|
|
| Line 42: |
Line 42: |
| | :Overstrike (change) the current character to "A". | | :Overstrike (change) the current character to "A". |
| | | | |
| − | ==Other Resources== | + | ==Related Resources== |
| − | *[[Command_Line_Overview#Basic_Commands|Basic Commands]] | + | *[[Command_Line#Basic_Commands|Basic Commands]] |
| | *[[Command Mode| Command Mode Overview]] | | *[[Command Mode| Command Mode Overview]] |
| − | *[[Command Line Overview]] | + | *[[Command_Line|Command Line Overview]] |
Latest revision as of 17:30, 20 February 2017
The basic alter commands let you delete a specified number of characters or lines.
- Del_Line(m) / DL(m)
- Delete the following or previous 'm' lines of text.
- Del_Lines(6) / DL(6)
- Delete from the edit position up to and including the 6th "newline".
- Del_Line(-4) / DL(-4)
- Delete all characters (if any) on the current line up to the edit position and the previous 4 lines.
- DL(0) DL
- Delete the current line regardless of where the edit position is on it.
- Del_Char(m) / DC(m)
- Delete the following or previous 'm' characters. Remember that with DOS/Windows files, the "newline" is usually two characters.
- Del_Char(100) / DC(100)
- Delete the following 100 characters.
- Del_Char(-2) / DC(-2)
- Delete the previous 2 characters.
The basic insertion commands are Ins_Text( ) and Ins_Char( )
- Ins_Text("text")
- Insert the text 'text' at the edit position and advance the edit position.
- Ins_Text("Help ")
- Inserts the word "Help " at the edit position.
The "COUNT" option lets you insert multiple copies.
- Ins_Text(".",COUNT,80)
- Insert eighty (80) periods at the edit position.
- Ins_Char(n)
- Insert the single character with ASCII value 'n' at the edit position and advance the edit position.
- Ins_Char(10)
- Insert a line-feed (<LF>) at the edit position.
- Ins_Char(205)
- Insert a graphics character at the edit position.
The "OVERWRITE" option overstrikes the current character with a new one.
- Ins_Char('A',OVERWRITE)
- Overstrike (change) the current character to "A".
Related Resources