Trybotics Logo

How to Change Color in Command Prompt

DESCRIPTION

Ok then, Everyone has to agree that the normal colors in command prompt are extremely boring, Dull Gray on boring Black... Not fun colors when you are wanting to mess about in command prompt.

So, I'm going to show you step by step how to bring some color into your prompt!

Description:

Ok, So first you need to find out what the codes for each of the colors are, to find this out simply type:
color zz
and then you will get an amazing list of colors.

Description:

You will now be provided with a list of colors, Here is a copy:
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

Description:

To change the color of the text ignore the first Hex Digit of the color (color --)
Basically each color combination is split into two Hex Digits, The second one is the color of the text, so if you would like light green text then you would need to do:

Color -a

The other Hex Digit will be explained in the next steps

Description:

So far you have a color decided for the text (a) now you just need to pick a color for the background that will be the first Hex Decimal, so if you want an aqua background with our light green text you just need to put 3 for aqua before the Hex Decimal for the text, for example:

color 3a

This will make the background aqua (3-) and the text light green (-a)
So just put the two together and you have the full command (3a)

Description:

You can try out all sorts of combinations!
Here are a few examples:

color 48
Red with Gray text

color 3b
Aqua with Light aqua text

color 7c
White with Light red text

color e4
Light yellow with red text

So have fun and just experiment with lots of random combinations to add a bit more fun into your command prompt!


YOU MIGHT ALSO LIKE