Force color even if terminal is not STDOUT #4

Closed
lexfridman opened this Issue Feb 22, 2011 · 1 comment

Comments

Projects
None yet
1 participant

I needed to further process the output of colorgcc with another perl script through piping, and ran across the problem that colorgcc doesn't color the output if the terminal is not STDOUT. Many standard Linux programs allow you to use the --color or --color=always flag which forces the output of colors anyway. Can this functionality be added?

Nevermind, version 1.3.2 (the latest one) includes the CGCC_FORCE_COLOR variable in the if clause before checking if STDOUT is a terminal.

So basically I just need to define the CGCC_FORCE_COLOR environment variables, and my problem is fixed.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment