Wednesday, July 01, 2015

How to change color in command prompt

Posted By: BackBenchers World - Wednesday, July 01, 2015

Share

& Comment

This is a cool trick that let you alter foreground and background colors in command prompt.

Syntax: COLOR [attr], where attr specifies color attributes of console output.

Color attributes are specified by TWO hex digits -- the first corresponds to the background; the second foreground. Each digit can be any of the following values:

Color corresponding to particular hexadecimal value
Hexadecimal Value Corresponding Color
0 Black
1 Blue
2 Green
3 Aqua
4 Red
5 Purple
6 Yellow
7 White
8 Grey
9 Light Blue
A Light Green
B Light Aqua
C Light Red
D Light Purple
E Light Yellow
F Bright White

CMD Screenshot
In case no argument is given, this command restores the color to what it was when CMD.EXE started. This value either comes from the current console window, the /T command line switch or from the DefaultColor registry value.

About BackBenchers World

Techism is an online Publication that complies Bizarre, Odd, Strange, Out of box facts about the stuff going around in the world which you may find hard to believe and understand. The Main Purpose of this site is to bring reality with a taste of entertainment

0 comments:

Post a Comment

Copyright © 2013 TechDotHunter™ is a registered trademark.

Designed by Templateism. Hosted on Blogger Platform.