Difference between revisions of "SET PROMPT"

From VSI OpenVMS Wiki
Jump to: navigation, search
(Created page with "'''SET PROMPT''' is a DCL command that replaces the default DCL prompt ($ ) with the specified string. For information on setting prefix control strings for v...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
'''SET PROMPT''' is a [[DCL]] [[Command|command]] that replaces the default DCL prompt ($  ) with the specified string. For information on setting prefix control strings for verified command lines, see [[SET PREFIX]].
+
'''SET PROMPT''' is a [[DCL]] [[Command|command]] that replaces the default DCL [[Prompt|prompt]] ($  ) with the specified string. For information on setting prefix control strings for verified command lines, see [[SET PREFIX]].
  
 
=Syntax=
 
=Syntax=
Line 26: Line 26:
 
  </nowiki>
 
  </nowiki>
 
In the example above, the prompt is changed to the default directory.
 
In the example above, the prompt is changed to the default directory.
 +
 +
[[Category:DCL Commands]]

Latest revision as of 09:17, 2 December 2019

SET PROMPT is a DCL command that replaces the default DCL prompt ($ ) with the specified string. For information on setting prefix control strings for verified command lines, see SET PREFIX.

Syntax

SET PROMPT[=string]

String

Specifies the new prompt string. The following rules apply:
  • All valid ASCII characters can be used.
  • No more than 64 characters are allowed.
  • To include spaces or lowercase letters, enclose the string in quotation marks (" "). Otherwise, letters are converted automatically to uppercase; leading and trailing spaces are removed.

If you do not specify the string parameter with the SET PROMPT command, the default DCL prompt ($ ) is restored.

Qualifiers

/CARRIAGE_CONTROL inserts carriage return and line feed characters before the prompt string. Type the qualifier after the string parameter.

Examples

$ SET PROMPT="ALPHA> "
ALPHA> 

In the example above, the prompt is changed to "ALPHA> "

 $ SET PROMPT="''f$environment("DEFAULT")'> "
 

In the example above, the prompt is changed to the default directory.