mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Support NO_COLOR environment variable
This commit is contained in:
parent
ce3539e285
commit
fd44f4523a
|
@ -3953,6 +3953,10 @@ static int color_hsv_to_windows_console_color(const ColorHSVA *hsv)
|
||||||
|
|
||||||
void set_console_msg_color(const void *rgbvoid)
|
void set_console_msg_color(const void *rgbvoid)
|
||||||
{
|
{
|
||||||
|
static const char *pNoColor = getenv("NO_COLOR");
|
||||||
|
if(pNoColor)
|
||||||
|
return;
|
||||||
|
|
||||||
#if defined(CONF_FAMILY_WINDOWS)
|
#if defined(CONF_FAMILY_WINDOWS)
|
||||||
const ColorRGBA *rgb = (const ColorRGBA *)rgbvoid;
|
const ColorRGBA *rgb = (const ColorRGBA *)rgbvoid;
|
||||||
int color = 15;
|
int color = 15;
|
||||||
|
|
Loading…
Reference in a new issue