Yet another C++ header-only stream coloring library
1–4 of 4 posts
Re: Yet another C++ header-only stream coloring library
#2Sadly, 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`.
[1]: https://github.com/datafl4sh/sgr/blob/2d33bb702437fdf288defa...
Re: Yet another C++ header-only stream coloring library
#3Sadly, 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`. [1]: https://github.com/datafl4sh/sgr/blob/2d33bb702437fdf288defa...
It is actually ignored. But thanks for the comment, I'll fix the code to at least compile :)
Re: Yet another C++ header-only stream coloring library
#4Sadly, 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`. [1]: https://github.com/datafl4sh/sgr/blob/2d33bb702437fdf288defa...
It is actually ignored. But thanks for the comment, I'll fix the code to at least compile :)
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`?