HP 3000 Manuals

Execute Editor Command [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Execute Editor Command 

Purpose 

Executes any valid HP EDIT command by name.

Default Syntax 

E

Description 

This command prompts for an HP EDIT command name and executes a valid
entry.  The primary purpose of this command is to enable you to execute
commands that do not have keys assigned to them.  However, you can use
this command to execute any HP EDIT command, regardless of whether a key
is assigned to it or not.

Command Process 

When you execute the command, HP EDIT prompts you for the command name.
If you specify a valid command name, HP EDIT executes the command.  [REV
BEG]You can specify a count at the command prompt by first typing in the
count, then typing in the command name, and then pressing Return.[REV
END] 

If you specify an invalid command name, HP EDIT does not execute the
named command and sounds the terminal bell.  You must then back up the
cursor to the character in error on the command line and retype the
remainder of the command name.

You can abort the process after the prompt appears by pressing the Return 
key.

Options 

There are a number of key options available to assist you in using this
command.  After you execute the command and the prompt appears, you can
use the following keys to perform the described functions:

[REV BEG]Space[REV  Attempts to complete the partial name specified and
END]
                    display the entire command on the message line.  For
                    instance, if you type fill beside the prompt and
                    press this key, HP EDIT displays fill character on
                    the message line.  You can then press Return to
                    execute this command.  This feature is useful if you
                    remember the beginning of a command name but cannot
                    recall the entire name.

?                   Displays command names that begin with the partial
                    command name specified.  For instance, if you type
                    forward beside the prompt and press Return, HP EDIT
                    does not execute the command because more than one
                    command begins with the word forward.  If you then
                    type ?, HP EDIT displays a list of possible entries.
                    You would then press Return and supply the desired
                    word that completes the command, which is either
                    character, line, or word.

Return              Attempts to execute the entire or partial command
                    name specified.  If HP EDIT cannot execute the
                    command as specified, it displays the portion that it
                    recognizes.  You must then supply the remaining
                    minimum number of characters necessary for HP EDIT to
                    execute the command.

                    For instance, if you only type for and press Return,
                    HP EDIT completes the word to forward and moves the
                    cursor beyond this word.  You must then specify
                    whether you want the editor to move forward a
                    character, word, or line.  If you wanted to specify a
                    line, you would only have to type l after the word
                    forward and press the Return key.

Backspace           Deletes a character from a typed command string.

CTRL w              Deletes a word from a typed command string.

CTRL u              Deletes the entire typed command string and returns
                    the cursor to its original position beside the
                    prompt.

CTRL r              Refreshes the entire typed command string.  This
                    feature is useful when a terminal message obscures
                    the command string.

CTRL y              Aborts the command process and returns the cursor to
                    its former text position.

Procedure 

To execute a command by name: 

   1.  Press the E key, or press the MPE and Options function key,
       followed by the Execute Command function key.  HP EDIT displays
       the prompt Command:  on the message line.

   2.  Type a valid command name and press Return.  HP EDIT executes the
       named command.

Example 

To execute the command Compress Blank Lines using the command completion 
keys: 

   1.  Press the E key, or press the MPE and Options function key,
       followed by the Execute Command function key.  HP EDIT displays
       the following prompt:

            Command: _

   2.  Type com and press the space bar.  HP EDIT attempts to complete
       the command name as shown:

            Command: Compress Blank _

   3.  Press the ?  key.  HP EDIT displays the following header line and
       screen:

[]
4. Press the l key (representing lines) at the cursor position and press Return. HP EDIT executes the command. Related Commands None


MPE/iX 5.0 Documentation