Skip to content

Commit

Permalink
Update Log.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
MAJigsaw77 authored Aug 30, 2024
1 parent 94cda5b commit 7e320db
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tools/hxcpp/Log.hx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class Log
break;
}
}
if (!colorSupported)
if (colorSupported != true)
{
if (Sys.getEnv("CI_NAME") == "codeship")
{
Expand All @@ -167,7 +167,7 @@ class Log
}
}

if (!colorSupported)
if (colorSupported != true)
{
if (Sys.getEnv("TEAMCITY_VERSION") != null)
{
Expand All @@ -179,22 +179,22 @@ class Log
}
}

if (!colorSupported)
if (colorSupported != true)
{
colorSupported = Sys.getEnv("TERM_PROGRAM") == "iTerm.app" || Sys.getEnv("TERM_PROGRAM") == "Apple_Terminal";
}

if (!colorSupported)
if (colorSupported != true)
{
colorSupported = ~/(?i)-256(color)?$/.match(term);
}

if (!colorSupported)
if (colorSupported != true)
{
colorSupported = ~/(?i)^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/.match(term) || (colorTerm != null);
}

if (!colorSupported)
if (colorSupported != true)
{
colorSupported = Sys.getEnv("COLORTERM") != null || Sys.getEnv("ANSICON") != null || Sys.getEnv("ConEmuANSI") != null
|| Sys.getEnv("WT_SESSION") != null || Sys.getEnv("FORCE_COLOR") != null;
Expand Down

0 comments on commit 7e320db

Please sign in to comment.