Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know how to change the color of selection done in command prompt window on the fly? I forgot the key sequence which used to allow that.

I am not talking about changing the color permanently like with color command which changes color of all the text.

For example visit this page: Check Command Prompt Window screenshots

share|improve this question
up vote 3 down vote accepted

On Windows XP this should do the trick. Download Tweak UI from Microsoft, then:

  1. Start Tweak UI.
  2. Click the "Command Prompt" link.
  3. Check "Enable selection coloring".
  4. Close Tweak UI.

This enables selection coloring on every command-line prompt. You should be able to highlight text, pressing CONTROL-0, CONTROL-1 (or any combination through CONTROL-9) to change the background color of the selected text. For changing the foreground color of the selected text, press ALT-0, ALT-1 (or any combination through ALT-9).

share|improve this answer
Thanks got it working :) This is the actual behind the scene registry key which is doing the magic. Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Console] "EnableColorSelection"=dword:00000001 – KAPes Jun 28 '09 at 12:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.