COLOUR — Change the screen output colour

Synopsis

COLOUR [/?] [/D] [colour]

Options

/?
Display command syntax information.
/D
Access the console directly.

Description

The COLOUR command changes the current screen output colour. It can optionally be provided with a colour specification to specify what colour to change to.

If the /D option is not used, COLOUR writes ANSI CSI sequences for changing the current colour to its standard output. If no colour is specified, COLOUR will leave the current colour as white on black. If a colour is specified, COLOUR will change the current colour to that colour.

If the /D option is used, COLOUR attempts to perform direct access to the console, and its standard output must be a console device. If no colour is specified, COLOUR defaults to white on black. Both the current output colour and the current scroll colour are set to the given colour.


The 32-bit Command Interpreter is © Copyright Jonathan de Boyne Pollard. "Moral" rights are asserted.