How to change the colours of the command window

Posted on 11 January, 2009
This item is filed under [Fun, Windows]

If you are bored with the usual black and white command window, here is how to add a little colour to it. You can change both the text as well as the background colour easily.

command_color

Here are the steps.

  • Open up the command window. (Click Start > Run, type cmd or command and hit Enter.)
  • In the command prompt type ‘color g’. Note that the command is color and not colour.
  • This will show the numbers from 0 to 9 and letters from A to F with the corresponding colours.
  • Press any key to continue.
  • To change the colour of the text, type ‘color x’ where x is the number/letter corresponding to the colour you want. For example, typing ‘color 6’ will change the text colour to yellow and ‘color 4’ will change the text to red.
  • To change the colour of the text as well as the background, you would type ‘color xy’, where the first attribute (x) denotes the colour of the background and the second attribute (y) denotes the colour of the text. For example,  to have light yellow text on a red background type ‘color 4e’. The first letter/number is the colour of the background and the second is the colour of the text.

To restore the colours to the default setting type ‘color’ (without any attributes) and hit enter. Also, if you try to set the text and the background to the same colour, it would not work as the color command sets the ERRORLEVEL to 1 and nothing would be changed.

Enjoyed this post? Share it with others.
  • email
  • Print
  • Digg
  • StumbleUpon
  • Technorati
  • Reddit
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • FriendFeed
  • BlinkList
  • Diigo
  • LinkedIn
  • Propeller
  • IndianPad
  • MySpace
  • Slashdot

Subscribe Now

If you enjoyed this post, you will definitely enjoy our others. Subscribe to the feed to get future posts delivered right to your mailbox or feedreader.

Powered by Thesis

Thesis Theme

An amazing WordPress Theme, nothing beats the versatility and SEO friendliness of the Thesis framework.

From beginners, to the most advanced WordPress developers, Thesis makes it easy for anyone to customize it.


Leave a Comment

Previous post: Ultimate List of Free Windows Software from Microsoft

Next post: Terrafugia Transition – World’s first flying car