Command: prompt

  PROMPT changes the way command prompt appears.
  PROMPT is a BATCH-FILE / AUTOEXEC.BAT / FDAUTO.BAT command.
  It can also be used in command line.

Syntax:

  PROMPT [Options] [text]

Options:

  text    Specifies a new command prompt.
  /?   Shows the help.
  Prompt can be made up of normal characters and the following special
  codes:
  $$   $ (dollar sign)
  $_   Carriage return and linefeed
  $B   | (pipe)
  $D   Current date
  $E   Escape code (ASCII code 27, see NANSI.SYS
  $G   > (greater-than sign)
  $H   Backspace (erases previous character)
  $L   < (less-than sign)
  $N   Current drive
  $P   Current drive and path
  $Q   = (equal sign)
  $T   Current time
  $V   The FreeDOS command shell version number

Comments:

  Type PROMPT without parameters to reset the prompt to the default
  setting. PROMPT can also be used outside a batch file.
  When NANSI.SYS is loaded, PROMPT can also use different foreground /
  background colours with the setting: prompt $e[#;#;#m , where # represents
  values.
  PROMPT is a command internal to command.com and needs no other file
  in order to work.

Examples:

  IN A .BAT FILE / AUTOEXEC.BAT:
    prompt $p$g            (Same as the default setting) OR:
    prompt $p$g Please enter a command! OR:
    prompt $p Hello Jim! $g OR:
    prompt Hello Jim, you are at: $p$g
  When NANSI.SYS is loaded, you can also change the colours:
    prompt $p$g$e[1;33;44m  for bold (1) / yellow (33) / blue (44).
  If you like underline and other colours:
    prompt $p$g$e[4;30;46m  for underline (4) / red (30) / cyan (46).

See also:

  autoexec.bat/fdauto.bat
  batch files
  command.com/freecom
  nansi.sys

  Copyright © 2004 Robert Platt, updated 2011 and 2022 by W. Spiegl.

  This file is derived from the FreeDOS Spec Command HOWTO.
  See the file H2Cpying for copying conditions.