Change the colors used by command consoles
The Windows 2000 command console defaults to white text on a
black background. However, you might prefer a different color scheme.
You have two ways to change the colors: through the properties for
the command console or using the
color
command. The former changes the color
scheme for all consoles, and the latter changes it only for the
current console.
Changing color for all consoles
You can change the color scheme for all command consoles by changing the properties for the Command Prompt shortcut:
Click Start → Programs → Accessories, right-click Command Prompt, and choose Properties.
Click the Colors tab.
Use the controls on the Colors page to configure the default colors for all consoles.
Changing color for the current console
In addition to changing color for command consoles globally, you also
can specify colors for the current console only. You do so using the
color command from the command prompt:
Open a command console.
Type
colorbfand press Enter, wherebis the background color andfis the foreground color. Use the values listed in Table 6-1 forbandf.
Table 6-1. Background and foreground color values
|
b & f color values |
b & f color values |
|---|---|
|
0 = Black |
1 = Blue |
|
2 = Green |
3 = Aqua |
|
4 = Red |
5 = Purple |
|
6 = Yellow |
7 = White |
|
8 = Gray |
9 = Light Blue |
|
A = Light Green |
B = Light Aqua |
|
C = Light Red |
D = Light Purple |
|
E = Light Yellow |
F = Bright White |
Enter color without any parameters to switch back to the default color settings. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access