fatih / color

Color package for Go (golang)
https://pkg.go.dev/github.com/fatih/color
MIT License
7.24k stars 615 forks source link

Not working in Git Bash on Windows #89

Closed msathieu closed 6 years ago

msathieu commented 6 years ago

I am using Git Bash and wanted to color the output of my program, but I'm getting this: ?[36mMSathieu C:\Users\MSathieu\go\src\github.com\MSathieu\Gosh $?[0m.

fatih commented 6 years ago

I don't use Windows, so no Idea why this is not working. However I'm using the windows layer that @mattn created. Maybe he has an idea?

mattn commented 6 years ago

@MSathieu What terminal do you use? I tried this on msys2 mintty.

image

Works intended.

msathieu commented 6 years ago

I was using the bash terminal that ships with Git for Windows.

mattn commented 6 years ago

Could you please take screenshot or find the process name of exe?

msathieu commented 6 years ago

Screenshot

mattn commented 6 years ago

What the shell? Where it's installed?

mattn commented 6 years ago

And please try to take hex dump like below.

./Gosh.exe | od -x
fatih commented 6 years ago

Closing due lack of feedback from the original reporter