PROMPT(DOS) UNIX System V PROMPT(DOS)
Name
prompt - changes the MS-DOS command prompt
Syntax
prompt [[text][$character]...]
Description
The prompt command lets you change the MS-DOS system prompt
(for example, A>). If, when using prompt, you do not type a
new value, the prompt is set to the default value, which
includes the default drive designation.
You can use the characters in prompt to create special
prompts. You must precede each character with a dollar sign
($):
SPECIFY THIS CHARACTER TO GET THIS PROMPT
___________________________________________________________________
$ The $ character
t The current time
d The current date
p The working directory of the default drive
v The version number
n The default drive
g The > character
l The < character
b The | character
<Return><Linefeed>
s A space (leading only)
e ASCII code X'1B' (escape)
Examples
The following example sets the drive prompt to
drive:current_directory:
prompt $p
The following command sets a two-line prompt that displays
the following:
Time = (current time)
Date = (current date)
prompt time = $t$date = $d
If your terminal has an ANSI escape sequence driver, you can
use escape sequences in your prompts. The following
command, for example, sets your prompt in inverse video mode
and returns to video mode for other text:
prompt $e[7m$n:$e[m
Notes
prompt is an internal command.
PROMPT(DOS) (printed 8/16/89) PROMPT(DOS)