Set Default Console Foreground & Background colors for command prompt

December 10, 2009

command-promptThis is a simple technique to change the foreground as well as background colors of your command prompt.

Syntax: color [attrib]

here attrib specifies the color attributes of console output.

The color attrib is specified by a 2 hex-digit code which first digit represents the background and second digit represents the  foreground color.

It will be bit boring if you have continued your work on the same platform. So let us make our work bit interesting while we are working on the command prompt for running out Java or Tasm/Masm programs by changing the foreground and background colors.

This is a simple technique. Lets us finally navigate to our process.

  1. Open your command prompt.
  2. Then type “color fc
  3. This will display the “text in red” with “bright white background.
  4. You can make use of lots of other combinations. Just type “help color“.
  5. You can select around 16 different attributes to set your color for the command prompt.
  6. Then arises a million dollar question, how to set it to default screen after doing this. Just type “color” and press “enter” it will restores the color to what it was when the “cmd.exe” was started or else it will appears same a before after closing and restarting the command prompt.


Share Orkut

Related posts:

  1. Design Your Own Twitter Background with Themeleon
  2. 5 More Notepad Tricks
  3. 10 Awesome Notepad Tricks
  4. How to create a theme in Windows 7

{ 3 comments… read them below or add one }

Kiran December 10, 2009 at 10:11 pm

Thanks for dropping in my blog :) It’s been a long time since I re-hatched my command prompt knowledge.
Kiran´s last blog ..Part 2 – A visit to the Astronaut Hall of Fame My ComLuv Profile

Reply

Chethan Thimmappa December 11, 2009 at 7:33 am

Yeah It is working! Nice Man!

Reply

Siddartha January 2, 2010 at 9:07 pm

Thnx dude!!

Reply

Leave a Comment

CommentLuv Enabled

Previous post:

Next post: