Conflicts: library/Console-darwin.cpp
@ -863,3 +863,13 @@ void Console::msleep (unsigned int msec)
if (msec > 1000) sleep(msec/1000000);
usleep((msec % 1000000) * 1000);
}
void Console::hide()
{
//Warmist: don't know if it's possible...
void Console::show()
@ -589,3 +589,13 @@ void Console::msleep (unsigned int msec)
Sleep(msec);
ShowWindow( GetConsoleWindow(), SW_HIDE );
ShowWindow( GetConsoleWindow(), SW_RESTORE );
@ -788,6 +788,14 @@ command_result Core::runCommand(color_ostream &con, const std::string &first, ve
return CR_WRONG_USAGE;
else if(first=="hide")
getConsole().hide();
else if(first=="show")
getConsole().show();
else
command_result res = plug_mgr->InvokeCommand(con, first, parts);
@ -157,6 +157,9 @@ namespace DFHack
bool isInited (void) { return inited; };
bool is_console() { return true; }
void hide();
void show();
private:
Private * d;
tthread::recursive_mutex * wlock;