help.hlp (Table of Contents; Topic list)
PROMPT--Examples
Syntax  Notes
────────────────────────────────────────────────────────────────────────────
 
                              PROMPT──Examples
 
The following example sets the command prompt to display the current drive
and path followed by the greater-than sign (>):
 
    prompt $p$g
 
The following command displays a two-line prompt in which the current time
appears on the first line and the current date appears on the second line:
 
    prompt time is: $t$_date is: $d
 
If your CONFIG.SYS file loads ANSI.SYS, you can use ANSI escape sequences in
your prompts. The following command, for example, displays your prompt in
reverse video mode and returns to usual video mode for other text:
 
    prompt $e[7m$n:$e[m
 
The characters following the escape code ($E) are ANSI escape sequences.
                                      ♦