help.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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.
                                      ♦