Overwrite [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Overwrite
Purpose
Enables a user to write over existing text.
Default Syntax
[n] o
where n is a count that represents the column where overwriting is to
begin. The default value of n is the current column position.
Description
This command places HP EDIT in Text Entry mode and enables you to replace
characters by typing over them. Text not written over remains unaltered.
You can write over subsequent lines by pressing Return without preceding
it with the / key. The cursor moves to the first non-blank column of
each succeeding line whenever you press Return. When you have finished
writing over text, pressing / and Return returns you to Command mode.
Terminal Key Option
You can use the Insert Character key to alternate between inserting and
overwriting text when you are in Text Entry mode. When in the overwrite
state, pressing this key switches HP EDIT into the insert state where you
can insert characters as though you had executed the Insert Character
command. Pressing the key once more returns HP EDIT to the overwrite
state, where you can replace characters again by typing over them.
Procedure
To write over one or more lines:
1. Move the cursor to the desired location, or move the cursor to the
desired line and specify a count representing the column where you
want to begin writing over text.
2. Press the o key, or press the Edit Commands function key, followed
by the Overwrite function key. HP EDIT places HP EDIT in Text
Entry mode.
3. Write over the text that you want to replace. To write over more
than one line, simply press Return at the end of each line. HP
EDIT moves the cursor to the first column of the next line.
4. Press / and Return when you have finished typing over the text
segment to return to Command mode.
Example
To write over the following line beginning at the word WILL:
The end of this line will be written over.
1. Move the cursor to the position shown or type 22 as the count and
press the o key.
2. Type replaces the previous text. beginning at the cursor
position.
3. Press / and Return to return to Command mode. HP EDIT writes over
the previous text and replaces it with the new text as shown:
The end of this line replaces the previous text.
Related Commands
Append Line
Append To Character
Append To End Of Line
Append To Word
Insert Character
Insert Line
Replace Character
Replace Word
Replace Line
MPE/iX 5.0 Documentation