TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-314
#PROMPT Built-In Variable
#PROMPT Built-In Variable
Use #PROMPT to set or obtain the current state of the prompt flag.
Result
#PROMPT returns -1 if the prompt flag is on, 0 if it is off.
Considerations
When you first log on, #PROMPT is initialized to zero.
Use #PUSH #PROMPT (or PUSH #PROMPT) to save a copy of the current setting
of the prompt flag.
Use #POP #PROMPT (or POP #PROMPT) to restore the prompt flag from the last
copy pushed.
Use #SET #PROMPT (or SET VARIABLE #PROMPT) to set the prompt flag off or
on.
The syntax of #SET #PROMPT is:
num
is zero to set the flag off, a nonzero value to set it on.
When it is on, the prompt flag causes TACL to try to invoke a macro or routine
called _PROMPTER just before issuing a prompt. Your _PROMPTER macro
can add text to the standard TACL prompt by using the #PREFIX built-in
variable.
If you press BREAK or an error occurs during your prompt macro, #PROMPT
is automatically set to zero.
#PROMPT
#SET #PROMPT num