Re:Show HN: Grep with colours written in Go
by tom_ on Wednesday June 06, 2018 @10:11AM
(#17247263)
I don't think it matters so much on Windows, because the colour information is sent out of band. When you call SetConsoleTextAttribute on the STD_OUTPUT_HANDLE, and that handle is a file, the call simply fails.
[ Parent
| on HN ]
Re:Show HN: Grep with colours written in Go
by burntsushi on Wednesday June 06, 2018 @10:34AM
(#17247452)
I am not speaking without experience. If you support Windows, you probably need to support non-console environments like cygwin and msys. Moreover, Windows 10 has opt-in support for ANSI style coloring. At some point, coloring via the console APIs will probably stop being used.