Re:Yet another C++ header-only stream coloring library
by nanis on Thursday August 26, 2021 @07:07AM
(#28313236)
Sadly, it looks like Windows is ignored. At first, I thought it just didn't do anything on Windows[1], but the demo fails to compile with most recent `cl`.
Re:Yet another C++ header-only stream coloring library
by nanis on Thursday August 26, 2021 @11:12AM
(#28315963)
While auto-detection likely would not work in Windows, it seems to be it would be an interface improvement to allow programmatic control over whether output is enabled.
That is, why should `sgr_enabled` return `false` on Windows even if `mode` is set to `ALWAYS_ENABLED`?
[1]: https://github.com/datafl4sh/sgr/blob/2d33bb702437fdf288defa...
That is, why should `sgr_enabled` return `false` on Windows even if `mode` is set to `ALWAYS_ENABLED`?