summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-10 13:07:49 +0200
committermadmaxoft <github@xoft.cz>2013-08-10 13:07:49 +0200
commit15f80e0811fbc3a842eb29a2f203e107102935c8 (patch)
treedf2c77f7795d1391f4ca61118e702230e5dad624
parentColoring is reset before the LF. (diff)
downloadcuberite-15f80e0811fbc3a842eb29a2f203e107102935c8.tar
cuberite-15f80e0811fbc3a842eb29a2f203e107102935c8.tar.gz
cuberite-15f80e0811fbc3a842eb29a2f203e107102935c8.tar.bz2
cuberite-15f80e0811fbc3a842eb29a2f203e107102935c8.tar.lz
cuberite-15f80e0811fbc3a842eb29a2f203e107102935c8.tar.xz
cuberite-15f80e0811fbc3a842eb29a2f203e107102935c8.tar.zst
cuberite-15f80e0811fbc3a842eb29a2f203e107102935c8.zip
-rw-r--r--source/MCLogger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/MCLogger.cpp b/source/MCLogger.cpp
index 4442fc5b0..de0fcae2e 100644
--- a/source/MCLogger.cpp
+++ b/source/MCLogger.cpp
@@ -52,7 +52,7 @@ cMCLogger::cMCLogger(void)
g_DefaultConsoleAttrib = sbi.wAttributes;
}
#elif defined (__linux) && !defined(ANDROID_NDK)
- g_ShouldColorOutput = isatty(fileno(stdin));
+ g_ShouldColorOutput = isatty(fileno(stdout));
// TODO: Check if the terminal supports colors, somehow?
#endif
}