summaryrefslogtreecommitdiffstats
path: root/source/MCLogger.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-10 09:45:05 +0200
committermadmaxoft <github@xoft.cz>2013-08-10 09:45:05 +0200
commit528feaba2c4df71912cd6734a0beec569b7a7d26 (patch)
tree4c1f7268dd5b6f383ec445c83577513d7365950c /source/MCLogger.cpp
parentBad preprocesor used for discovering Linux (diff)
downloadcuberite-528feaba2c4df71912cd6734a0beec569b7a7d26.tar
cuberite-528feaba2c4df71912cd6734a0beec569b7a7d26.tar.gz
cuberite-528feaba2c4df71912cd6734a0beec569b7a7d26.tar.bz2
cuberite-528feaba2c4df71912cd6734a0beec569b7a7d26.tar.lz
cuberite-528feaba2c4df71912cd6734a0beec569b7a7d26.tar.xz
cuberite-528feaba2c4df71912cd6734a0beec569b7a7d26.tar.zst
cuberite-528feaba2c4df71912cd6734a0beec569b7a7d26.zip
Diffstat (limited to 'source/MCLogger.cpp')
-rw-r--r--source/MCLogger.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/MCLogger.cpp b/source/MCLogger.cpp
index e6fc86775..78665f9d2 100644
--- a/source/MCLogger.cpp
+++ b/source/MCLogger.cpp
@@ -147,10 +147,10 @@ void cMCLogger::SetColor(eColorScheme a_Scheme)
#elif defined(__linux) && !defined(ANDROID_NDK)
switch (a_Scheme)
{
- case csGrayOnBlack: puts("\x1b[0m"); break;
- case csYellowOnBlack: puts("\x1b[33;1m"); break;
- case csRedOnBlack: puts("\x1b[31;1m"); break;
- case csBlackOnRed: puts("\x1b[7;31;1m"); break;
+ case csGrayOnBlack: printf("\x1b[0m"); break;
+ case csYellowOnBlack: printf("\x1b[33;1m"); break;
+ case csRedOnBlack: printf("\x1b[31;1m"); break;
+ case csBlackOnRed: printf("\x1b[7;31;1m"); break;
default: ASSERT(!"Unhandled color scheme");
}
#endif