Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

For example, I'd like blue to be a little bit lighter, or change red to be a bit more orangeish. Is this possible?

I know that I can change the background and foreground colors easily. What about the other colors?

share|improve this question
    
What other colours? Background is... the background, foreground is the text. There isn't really anything else to change in a CLI. –  Bob Apr 27 '12 at 11:30
    
For example, the color of the error message when you type somecommandthatdoesntexist. –  Andres Riofrio Apr 27 '12 at 19:23
add comment

1 Answer

up vote 5 down vote accepted

As you know, one can easily change the PowerShell console colours using something like this in your profile:

$a = (Get-Host).UI.RawUI
$a.ForegroundColor = "black"
$a.BackgroundColor = "white"
Clear-Host

However, you are limited to the standard 16 ANSI colours. You may be able to alter the colours used as the defaults in the registry (I can vaguely remember doing so in the past, but I cannot find any notes on it), but an easy way to do it would be to wrap the PowerShell console with Console2 and use the options in its settings. You'd also get other benefits, like tabs and easy pasting.


EDIT: I just remembered that you can do the same without using Console2. In the standard PowerShell console, just go to the Colour tab in Properties and modify the RGB values of the standard 16 ANSI colours.

share|improve this answer
    
That's great information. I'm thinking of scripting this---do you know of a way to detect which Registry values are changing? –  Andres Riofrio Apr 27 '12 at 18:04
    
@AndresRiofrio: Yes, just use RegShot before and after making the changes and see what the difference is, to find the relevant registry key. You can then inject the same value using reg add. –  paradroid Apr 27 '12 at 18:07
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.