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.

I'm using a Git Bash (1.8.3) under Windows 7.

Many of the command line tools come with the text highlighting using ANSI escape codes. However I've noticed the exact interpretation of the colors differs between the platforms.

For instance, on Windows, the red color in reality is a very dark red, which is almost unreadable on a black background. "Real" red (#FF0000) can be achieved by using the escape code for "bold red".

Regarding the Git itself, I can change the highlighting in gitconfig, but there are simply many command line tools with hardcoded ANSI escape codes for dark red.

Is it possible to override the meaning of those codes, so for instance I can change "red" to be "bold red" (or any other color) for all programs run in the terminal?

Or maybe is there some tool that gets data from pipe and changes the colors on the fly?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

If you are using the default Windows console, open the system menu (AltSpace) and select "Properties" (or "Defaults" for all console windows). You will find the color palette customization there.

freehand circle

share|improve this answer
    
I think you misunderstood my question. In the settings you mention, I can change default colors for console, so for instance, instead of being white-text-on-black, I can have yellow-on-blue. But I want instead to change let's say here: skitch-img.s3.amazonaws.com/… to have cyan instead of red (but for all the possible command line applications). –  jakub.g Jul 31 '13 at 14:59
    
1  
Ah, I haven't realized that this is effectively editing the pallette for the other colors too! Thanks! –  jakub.g Jul 31 '13 at 15:53

Some console replacements support changing the colors along with other features missing with the one that comes with Windows.

One example Console2. Note that behind it is still the same cmd.exe as the normal console window or another command processor if desired. An example of the settings dialog where Yellow has been made to show as blue.

enter image description here

To setup Git Bash to use it: Git Bash & Console2, Finally! which shows a settings dialog with what worked for them.

enter image description here

share|improve this answer
    
Hi Brian, thanks for your answer! I'll check it out soon! –  jakub.g Jul 31 '13 at 15:00

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.