Color


With the color command you can change the colors of DOS. The color command is not an originally DOS command, but a command of new versions of DOS (Windows command prompt).

You can use 16 color parameters.

Color codes
. 0 = black
. 1 = blue
. 2 = green
. 3 = cyan
. 4 = red
. 5 = purple
. 6 = yellow
. 7 = white
. 8 = gray
. 9 = light blue
. A = light green
. B = light cyan
. C = light red
. E = light yellow
. D = light purple
. F = bright white

DOS Programmers might recognize the color codes from their programming language.

Example:

C:\>color 2E

Gives a green background with a yellow foreground.

_________________________________________________________/

Change colors in old versions of DOS
If you want to change the colors in older DOS versions you need to put ANSI.SYS in your CONFIG.SYS file, like:

Device=c:\windows\command\ansi.sys

The Ansi color codes are not the same as the ones in this article. Click here to see a website with the ANSI color codes.

Sponsors