Reputation: 2830
I installed cygwin 3.1.7 64bit from setup 2.905 and if I don't use grep --color=always
I don't see colored output in a terminal, i.e. grep --color=auto
does not work correctly in my terminal (default mintty) and looks like grep --color=never
. How can I fix this?
I'm not sure that is the same topic, but Windows maven 3.6.3 output has color control sequences, however they are not rendered correctly. I thought this was working in 3.6.0 already, although Google states that a library needs to be updated to have that. Example output: [←[1;34mINFO←[m] ←[1;32mBUILD SUCCESS←[m
Upvotes: 3
Views: 958
Reputation: 2830
I found https://github.com/microsoft/vscode/issues/22616 and verified that my TERM
variable was set to xterm. After changing to cygwin
(export TERM=cygwin
) maven output was correct. I still don't understand why this has impact, i.e. for a collegue this is also xterm and working in cygwin 32bit.
Also I don't accept this answer, because I want to understand the core reason for this and because my workaround also breaks my Pos1 and End key mappings to work in zsh (jumpt to start of the line or end of line in console).
Upvotes: 4