Monday, December 20, 2010

Change MS-DOS background and Foreground colors

Have you ever wondered of changing the DOS background or foreground color ?
The value of "DefaultColor" in windows registry editor controls the foreground and background colors used in command prompt windows. It has a default value of 0, for standard white text on a black background.
Now how to CHANGE DOS BACKGROUND
Open your registry editor (press win+r and type regedit , hit enter )
goto

[HKEY_CURRENT_USER\Software\Microsoft\Command Processor]

There double click on "DefaultColor".
Now we can replace it's value with a two-digit hexadecimal number, in which the first digit selects a background color and the second, a foreground color. The hexadecimal codes are:


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
F0 -  Black text on a white background
1E - Yellow text on a blue background.


The change should take effect the next time you open a console window.

1 comment:
Write comments
  1. Hi
    Very nice blog post!! Thanks for the post,
    That is a really neatly written article

    ReplyDelete