Change the colors in the Windows 10 Command Prompt

In this article, we will see how you can adjust the font color and background color in Command Prompt in .

command

 

Command Prompt (command line) is a built-in tool of the Windows operating system, which has been available since its first version. It allows the user to use classic DOS commands as well as Win32 console commands and . Πρόκειται για ένα ισχυρό και εξαιρετικά χρήσιμο εργαλείο για προχωρημένους χρήστες των Windows. Ενώ η Microsoft δίνει έμφαση στο PowerShell στις τελευταία εκδόσεις των Windows 10, η παλιά καλή cmd.exe is still widely used in the operating system.

There is a trick that will allow you to change the background color and font color in the command line. This can be done permanently with a simple registry "tease" or completely temporarily with a command in the command prompt itself. Let's see how you can permanently change these colors through the registry, and keep in mind that this trick works on all older versions of Windows starting with Windows NT 4.0.

To permanently change the colors in the Windows 10 Command Prompt, do the following.
1. Open Registry Editor. If you do not know how, then press the Win + R keys at the same time, and in the pop-up window that appears, write the word regedit and press the OK button.
2. Go to the following registry key: HKEY_CURRENT_USER \ Software \ Microsoft \ Command Processor
3. On the right, double in “DefaultColor”. If it doesn't exist create it as a new 32-Bit DWORD, (even if you're in 64-bit mode of Windows, you'll still need to create a 32-bit DWORD value).
4. The DefaultColor hexadecimal value specifies the colors of the background and font in the command line window. Its value must be in hexadecimals and include two color codes, the first for the background and the second for the font, respectively.


For example, an 04 data value will set a black background in red.

The color code is as follows:
0 black
1 blue
2 green
3 cyan (cyan)
4 red
5 Magenta
6 yellow / brown
7 white
8 gray
9 bright blue
A bright green
B bright blue
C bright red
D bright magenta
It's bright yellow
F white

5. Make the change to the color code as desired, press the OK key, and then simply close the registry editor. Changes will be saved automatically.

To temporarily change the colors of cmd.exe, do the following.

Open the command line and type the following command:
color color_of_color_color (no space between the two color codes)
Use the same color codes as above. For example, to set a white background color in blue letters, issue the command: color F1
The result will be as follows:

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.087 registrants.

Written by Dimitris

Dimitris hates on Mondays .....

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).