DigitalInBlue / Celero

C++ Benchmark Authoring Library/Framework
Other
824 stars 95 forks source link

Use console background color instead of black background for colored text output #10

Closed cdeil closed 10 years ago

cdeil commented 10 years ago

I have white as background color in my terminal. This is switched to black for colored text output by Celero, which I think shouldn't happen, right? (see attached screenshot)

screen shot 2014-01-14 at 15 43 29

DigitalInBlue commented 10 years ago

Well, it should happen, you just shouldn't use a white background on your console! That aside, I can see about how to allow for default background colors when using colored text. Would a compile option configured via CMake to disable color console output (regardless of resolving the issue with setting the background color) help in your case?

cdeil commented 10 years ago

I wouldn't use a CMake option to disable color console output, for now I'll just switch my console to black background.

There must be a way to do coloured text with default background colour because many command line tools do this. (But I have to admit that I have no idea how hard it is so that it works everywhere.)