HP 3000 Manuals

Display Message [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation


HP EDIT Reference Manual

Display Message 

Purpose 

Displays a message during execution of a macro.

Default Syntax 

ESC "

Description 

This command, when executed within a macro along with accompanying
message text, displays a message on the message line during macro
execution.

Command Process 

To construct a macro that displays a message during macro execution, you
first incorporate this command and accompanying macro message text within
the macro.  When you subsequently execute the macro in which this command
and message text are imbedded, the message appears on the message line.

Syntax Considerations 

Besides the syntax associated with macro definitions, there is a special
character used to flag imbedded commands.  Since the standard Meta key
(ESC) appears as ^[ when inserted in a macro, HP EDIT provides the dollar
sign ($) as a substitute for the Meta key.  Consequently, you should use
$" when you imbed this command in a macro.

After the message text, you should add ^m, which is the macro symbol for
Return, to the end of the macro.  This step is necessary to terminate the
Display Message command within the macro.

Procedure 

To execute a macro that imbeds this command: 

   1.  Construct the macro in accordance with proper macro syntax.  Refer
       to the Define Macro command for information about constructing
       macros.

   2.  Insert this command by typing $" followed immediately by the macro
       message text.

   3.  Execute the macro by pressing the m key.  HP EDIT displays Specify 
       macroname on the message line.

   4.  Type the macro name as specified in the macro.  HP EDIT executes
       the macro and displays the macro message text on the message line.

Example 

To construct and execute macro P, which displays the message BEGINNING 
SECOND PASS...for three seconds: 

   1.  Assign the q key to the Delay command, using the Assign Key (K)
       command.

   2.  Insert a new line in text by executing the Insert Line (I)
       command.

   3.  Type the following text:

            mP=$"Beginning second pass...^mqqq

   4.  Press / and Return to exit Text Entry mode.

   5.  Execute the Define Macro (z) command.  HP EDIT deletes the macro
       from the screen and displays the following message:

            Macro defined

   6.  Issue the Execute Macro (m) command.  HP EDIT displays the
       following message:

            Specify macroname

   7.  Press the P key.  HP EDIT displays the following message for three
       seconds:

            Beginning second pass

Related Commands 

Delay



MPE/iX 5.0 Documentation