X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fcommandthread.cpp;h=8b9ddc31244da5a1616d1eb8d0dff354efbf51b0;hb=c7fcb4c4bc5012a584add81a9509fc1f84c3c688;hp=7d872f01cd646d0097218a213af503d3c64c5584;hpb=d8f51eac91f86a1e00a05a5058a8fa9eb8732464;p=fms.git diff --git a/src/commandthread.cpp b/src/commandthread.cpp index 7d872f0..8b9ddc3 100644 --- a/src/commandthread.cpp +++ b/src/commandthread.cpp @@ -44,17 +44,21 @@ void CommandThread::HandleQuit() m_running=false; } -void CommandThread::run() +void CommandThread::Run() { std::string input; m_running=true; + + m_log->WriteLog(LogFile::LOGLEVEL_DEBUG,"CommandThread::run thread started."); do { + + std::cout << ">"; std::cin >> input; HandleInput(input); - }while(m_running==true); + }while(m_running && !IsCancelled()); }