summaryrefslogtreecommitdiffstats
path: root/source/MCLogger.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-10 12:44:39 +0200
committermadmaxoft <github@xoft.cz>2013-08-10 12:44:39 +0200
commit63b2fa21e8c7891da5f232e79f41b845d17c6e3d (patch)
tree46daf04f2055d1471eac08afe2e72ca29d97e294 /source/MCLogger.h
parentUse printf() instead of puts(). (diff)
downloadcuberite-63b2fa21e8c7891da5f232e79f41b845d17c6e3d.tar
cuberite-63b2fa21e8c7891da5f232e79f41b845d17c6e3d.tar.gz
cuberite-63b2fa21e8c7891da5f232e79f41b845d17c6e3d.tar.bz2
cuberite-63b2fa21e8c7891da5f232e79f41b845d17c6e3d.tar.lz
cuberite-63b2fa21e8c7891da5f232e79f41b845d17c6e3d.tar.xz
cuberite-63b2fa21e8c7891da5f232e79f41b845d17c6e3d.tar.zst
cuberite-63b2fa21e8c7891da5f232e79f41b845d17c6e3d.zip
Diffstat (limited to 'source/MCLogger.h')
-rw-r--r--source/MCLogger.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/source/MCLogger.h b/source/MCLogger.h
index 158ccc6b6..6f7d34e66 100644
--- a/source/MCLogger.h
+++ b/source/MCLogger.h
@@ -28,15 +28,18 @@ public: // tolua_export
private:
enum eColorScheme
{
- csGrayOnBlack,
- csYellowOnBlack,
- csRedOnBlack,
- csBlackOnRed,
+ csRegular,
+ csInfo,
+ csWarning,
+ csError,
} ;
/// Sets the specified color scheme in the terminal (TODO: if coloring available)
void SetColor(eColorScheme a_Scheme);
+ /// Resets the color back to whatever is the default in the terminal
+ void ResetColor(void);
+
cCriticalSection m_CriticalSection;
cLog * m_Log;
static cMCLogger * s_MCLogger;