In Git Bash on Windows 7, I occasionally have something happen that causes the color coding to fail when running cucumber scenarios or rspec specs.
Occasionally, it is randomly fixed (where randomly == I don't know what I did to cause it to be fixed).
So when I run:
$ bundle exec cucumber features
Or
$ bundle exec rspec spec
instead of seeing this in color:
......
3 scenarios (3 passed)
6 steps (6 passed)
I see something like:
[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m[32m.[0m
3 scenarios ([32m3 passed[0m)
6 steps ([32m6 passed[0m)
I know these are the code representations of the colors, but I don't know why it stops displaying the colors nor do I know how to fix it. What am I missing?
Output from git config --list:
core.symlinks=false
core.autocrlf=true
color.diff=auto
pack.packsizelimit=2g
help.format=html
http.sslcainfo=/bin/curl-ca-bundle.crt
sendemail.smtpserver=/bin/msmtp.exe
user.name=John Uhri
user.email= *****
color.branch=auto
color.diff=auto
color.interactive=auto
color.status=auto
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
core.hidedotfiles=dotGitOnly
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
I have had the same pb, it seems that if you unset the TERM environment variable it works again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With