Delete Character [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Delete Character
Purpose
Deletes a character from a line.
Default Syntax
[n] d
where n is a count that represents the number of characters to delete
beginning at the cursor position. The default value of n is 1.
Description
This command deletes one or more characters or blank spaces from a line
of text. When you execute the command, HP EDIT deletes the character or
blank space where the cursor is currently positioned and shifts the
remaining text on the line one column to the left.
When in Text Entry mode, you can use the Delete Character terminal key to
perform a similar function as this command.
Procedure
To delete a single character:
1. Move the cursor to the character or blank space to be deleted.
2. Press the d key, or press the Edit Commands function key, followed
by the Delete Char function key. HP EDIT deletes the character or
blank space and shifts the remaining text left to the cursor
position.
To delete several characters:
1. Move the cursor to the first character or blank space of the group
to be deleted.
2. Press the d key repeatedly until you have deleted all of the
unwanted characters.
or
1. Move the cursor to the first character or blank space of the group
to be deleted.
2. Type a count representing the number of characters to delete.
3. Press the d key.
or
1. Move the cursor to the first character or blank space of the group
to be deleted.
2. Press the Edit Commands function key, then press the Delete Char
function key repeatedly until you have deleted all of the unwanted
characters.
or
[REV BEG]
1. Select a block.
2. Press either the Delete Char function key or the d key.
[REV END]
Example
To delete the following cursor character:
This words has an unwanted character.
1. Move the cursor to the position shown above.
2. Press the d key. HP EDIT deletes the letter s as shown:
This word_has an unwanted character.
Related Commands
Delete Line
Delete Pattern
Delete Word
Replace Character
Replace Line
Replace Word
MPE/iX 5.0 Documentation