SYNOPSIS
color [attr]
DESCRIPTION
The color utility sets the default foreground and background colors for the console window to those specified by the color attribute attr. Color attributes are two digit hexadecimal numbers. The first digit indicates the background color; the second digit, the foreground color. Here are the corresponding colors for each hexadecimal digit:
| 0 | Black | 8 | Gray |
| 1 | Blue | 9 | Light Blue |
| 2 | Green | A | Light Green |
| 3 | Aqua | B | Light Aqua |
| 4 | Red | C | Light Red |
| 5 | Purple | D | Light Purple |
| 6 | Yellow | E | Light Yellow |
| 7 | White | F | Bright White |
When you do not specify the attr argument, color restores colors to the default of white on black.
If you attempt to set both the foreground and background to the same color, color considers it an error, changes neither color, and returns with an exit status of 1.
EXAMPLE
The command
color E0
sets the console window defaults to black on light yellow.
DIAGNOSTICS
Possible exit status values are:
PORTABILITY
Windows 2000. Windows XP. Windows Server 2003. Windows Vista. Windows 7. Windows Server 2008. Windows 8. Windows Server 2012.
AVAILABILITY
MKS Toolkit for Power Users
MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
MKS Toolkit 9.5 Documentation Build 3.