33 #include "usConsoleListener.h"
42 m_notifier =
new QSocketNotifier(_fileno(stdin), QSocketNotifier::Read,
this);
44 m_notifier =
new QSocketNotifier(fileno(stdin), QSocketNotifier::Read,
this);
46 connect(m_notifier, SIGNAL(activated(
int)),
this, SLOT(readCommand()));
53 void usConsoleListener::readCommand()
56 std::getline(std::cin, line);
60 std::cout <<
"Unknow console command : " << line << std::endl << std::flush;