Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

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

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
add comment

Your Answer

 
discard

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.