3 ms·
The best article I've seen on this topic is https://www.handprint.com/HP/WCL/color1.html https://www.handprint.com/HP/WCL/color1.html Warning: super-long read,
by zX41ZdbW 3y ago
The best article I've seen on this topic is https://www.handprint.com/HP/WCL/color1.html https://www.handprint.com/HP/WCL/color1.html
Warning: super-long read, you will spend a day.
You'll be surprised, but I use some thoughts from this article in ClickHouse to color logs nicely: https://github.com/ClickHouse/ClickHouse/blob/master/base/base/terminalColors.cpp#L11C32-L11C32 https://github.com/ClickHouse/ClickHouse/blob/master/base/ba...
- high_priest 3y agoI can't find anything specific on how these ANSI colors could be converted to rgb, other than that they are actually just color requests and are dependent on terminal configuration. Could you share what are your RGB expectations for every message type you have set in your code?