Use only colors supported by conhost.exe
The previous terminal for Windows is conhost.exe (the one with blue background) which renders some colors differently.
Green and Red, for example, are quite dim, whereas, on typical unix terminal and modern Windows Terminal, they're indistinguishable from "normal" ones.
This patch changes the overall hyperfine color scheme to a few "safe" colors in the following manner.
Color scheme
Main measurement text:
green -> yellow bold
green bold -> yellow bold
Min:
cyan -> bright green
Max:
purple -> bright red
Other:
blue -> cyan
magenta -> cyan
Before:
conhost.exe
Windows Terminal
VS Code
After:
conhost.exe
Windows Terminal
VS Code
This PR addresses https://github.com/sharkdp/hyperfine/issues/507
Sorry forgot to change min label color. Now it's correct:
Thank you. Maybe it's just me, but I liked the previous colors better. Is there any way we can do a minimal fix without changing everything? Possibly only on Windows, or ideally only on "affected" terminal emulators?
I guess it's pretty hard to reason about what colors "are better". I'm definitely not ready for it...
Possibly only on Windows, or ideally only on "affected" terminal emulators?
It's doable, I can try if you're fine with additional code
I would favor a solution where we put all of the used colors in one central place. And then we could have two variants of the "theme", one for cases where we assume that we are running in a old-style blue Windows terminal, and the default theme.