StephanTLavavej / mingw-distro

MinGW distro build scripts.
492 stars 55 forks source link

grep color highlighting doesn't work in Windows 10's new console #77

Closed StephanTLavavej closed 2 years ago

StephanTLavavej commented 4 years ago

On Windows 10, version 1909, build 18363.657, grep color highlighting doesn't work in the new console.

I'm not sure why SetConsoleTextAttribute isn't working, but it appears that ENABLE_VIRTUAL_TERMINAL_PROCESSING would allow escape sequences to work (which would also make grep-lock.patch unnecessary). See:

StephanTLavavej commented 2 years ago

grep 3.7 color highlighting works on Win10 21H1. I might have been confused - I forgot that set_distro_paths.bat runs doskey grep=grep --color=auto $*.