guusw / unnamed-sdvx-clone

A rhythm game written in C++
MIT License
68 stars 107 forks source link

Logger: use better colors on Linux #11

Closed magiruuvelvet closed 8 years ago

magiruuvelvet commented 8 years ago

Terminal backgrounds may not be always black, there are people which prefer bright/white terminal backgrounds. Yellow and White obiously aren't readable on such a background color.

The colors which are now used are universal to bright and dark backgrounds and readable. For this the terminal emulator needs to support 16-million (24-bit) colors. If that mode is not supported, the underlaying shell fallbacks to the default 8/16 colors by default.

As an extend the color is also reset to default on application cleanup to prevent the last used color to affect the users shell.

Here is a screenshot to see the changes in action :smiley: screenshot_20160822_083708

If you have a better idea how to solve this problem, let me know.