Changing the TACL Prompt
The SETPROMPT command allows you to change the standard TACL prompt so that
it includes the current volume or subvolume name.
To make additional modifications, define a variable called _PROMPTER that contains
the definition of the prompt. Within the _PROMPTER variable, set the #PROMPT
built-in variable to the desired prompt text. To cause TACL to invoke _PROMPTER
prior to displaying a prompt, set the #PREFIX built-in variable to -1.
To save the previous prompt, push the #PREFIX built-in variable before you set
#PREFIX to the new prompt text.
The following code displays the node name, volume, and subvolume in the TACL
prompt:
#SET #PROMPT -1
[#DEF _PROMPTER TEXT |BODY| #SET #PREFIX [#DEFAULTS]]
When you are working on your local system, the prompt looks like this:
$DATA.SVOL 10>
When you have used the SYSTEM command or #SYSTEM built-in function to access
another node, the prompt looks like this:
\RSYS.$DATA.SVOL 10>
To install the prompt whenever a user logs on, add a section to the user's macro
definition file:
?SECTION _PROMPTER MACRO
#SET #PREFIX [#DEFAULTS]
Add the following line to the TACLCSTM file:
#SET #PROMPT -1
Alternatively, you could use the FILEINFO command to obtain the node name,
volume, and subvolume.
For more information about #PROMPT and #PREFIX, see the TACL Reference Manual.
107365 Tandem Computers Incorporated
Developing TACL Programs
Accessing Terminals
2–29