summaryrefslogtreecommitdiff
path: root/src/interfaceconsole.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaceconsole.cpp')
-rw-r--r--src/interfaceconsole.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/interfaceconsole.cpp b/src/interfaceconsole.cpp
index b30733a..94b45b9 100644
--- a/src/interfaceconsole.cpp
+++ b/src/interfaceconsole.cpp
@@ -22,7 +22,7 @@ InterfaceConsole::~InterfaceConsole()
22 22
23void InterfaceConsole::run( Game *pGame ) 23void InterfaceConsole::run( Game *pGame )
24{ 24{
25 GameState gs( pGame ); 25 GameState gs( pGame, this );
26 gs.init(); 26 gs.init();
27 27
28 while( gs.isRunning() ) 28 while( gs.isRunning() )
@@ -56,6 +56,11 @@ void InterfaceConsole::appendToken( Bu::String &sCurLine,
56 56
57Bu::String InterfaceConsole::getVt100Style( const StyleStack &sStyle ) 57Bu::String InterfaceConsole::getVt100Style( const StyleStack &sStyle )
58{ 58{
59#ifdef WIN32
60 // Windows...we don't do colors for windows...
61 return "";
62#endif
63
59 if( sStyle.isEmpty() ) 64 if( sStyle.isEmpty() )
60 { 65 {
61 return "\x1B[0m"; 66 return "\x1B[0m";