muhhiminminmin / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

Color doesn't work using googletest #315

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Get googletest at http://code.google.com/p/googletest
2. Compile gtest-md using Visual Studio
3. Run gtest_unittest-md from Visual studio
4. Run gtest/msvc/gtest-md/gtest_unittest.exe from mintty

What is the expected output? What do you see instead?
EXPECTED RESULTS: Both 3 and 4 write color
ACTUAL RESULTS: 3 is in color, 4 is in monochrome.

What versions of mintty, Cygwin/MSYS, and Windows are you using?
mintty 1.0.3
Cygwin 1.7.9
Windows OS Name Microsoft Windows 7 Home Premium Version    6.1.7601 Service Pack 
1 Build 7601

REGRESSION
- Previous versions of cygwin's terminal displayed color in google test
- Color is displayed using
     END_COLOR="\033[m"
     WHT_RED_COLOR="\033[41;37m"        # White on red
     echo -e "\n${WHT_RED_COLOR}Please set F_HOME or change to its directory.${END_COLOR}\n"
- Supplying --gtest_color=yes doesn't help.

Original issue reported on code.google.com by realityp...@gmail.com on 5 Feb 2012 at 6:32

GoogleCodeExporter commented 8 years ago
Have you got the TERM variable set correctly?

If so, googletest is using the Windows console API rather than terminal escape 
sequences to change colours. Mintty only supports the latter, i.e. this 
probably is a case of issue 56.

Maybe googletest has an option to force the use of escape sequences even when 
built for Windows. Otherwise try building it using Cygwin. (The googletest web 
page specifically mentions Cygwin support.)

Original comment by andy.koppe on 24 Feb 2012 at 5:43

GoogleCodeExporter commented 8 years ago

Original comment by andy.koppe on 11 Mar 2012 at 6:06