views:

430

answers:

2

I'm having a hard time enabling git colored output on windows when using console2.

To trick git I've already SET TERM = 'cygwin'. This enabled the colors from a standard cmd.exe prompt but not in console2. I've verified that console2 can see the env var as well.

Anyone know how to get this working?

+2  A: 

That is strange because, with a default installation of console2 (2.00.145) and msysgit (1.6.5) on Windows7, I do have the colors (without setting any particular environment variable):

alt text

This is consistent with TheDeeno's since no custom font colors are defined in a default installation.

VonC
darn, this _is_ strange. I'm using different versions of console2 (2.00.144) and msysgit (1.7.0.2). Maybe that's the issue?Can you post your git color config?
TheDeeno
I'm on win7 as well
TheDeeno
+1 for confirming that nothing crazy needs to be done.
TheDeeno
@TheDeeno: thank you for the feedback, I have updated my answer to reflect the root cause you mention in your post.
VonC
For those who only read this answer, be sure to check that you haven't defined a custom color in console2. This will override the color output of all your console apps.
TheDeeno
+5  A: 

Ok, wow. The solution is to verify custom font color in console2 is disabled. If enabled, it overrides the expected colors.

I use a custom color to give me opaque text when console2's using alpha transparency. I completely forgot about it.

TheDeeno
Good feedback. +1
VonC