Skip to content

Commit 79761bf

Browse files
committed
add FORCE_COLOR env var alternative
1 parent 7e4ac6b commit 79761bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

loader/src/platform/windows/console.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ void console::setup() {
132132

133133
setupConsole(
134134
string::contains(path, "cidr-")
135-
|| geode::utils::getEnvironmentVariable("GEODE_FORCE_ENABLE_TERMINAL_COLORS") == "1"
135+
|| geode::utils::getEnvironmentVariable("GEODE_FORCE_ENABLE_TERMINAL_COLORS") != "0" // prefer to use FORCE_COLOR=1
136+
|| geode::utils::getEnvironmentVariable("FORCE_COLOR") != "0"
136137
);
137138
}
138139

0 commit comments

Comments
 (0)