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

link|improve this question

43% accept rate
feedback

1 Answer

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).

link|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
feedback

Your Answer

 
or
required, but never shown

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