diff --git a/db_bridge/console.cpp b/db_bridge/console.cpp --- a/db_bridge/console.cpp +++ b/db_bridge/console.cpp @@ -1,22 +1,22 @@ +/** + * test/demos/db_bridge/console.cpp + * Copyright (C) Markus Broeker + */ + #include #include #ifdef WIN32 -#include #include int Console::getch () { - int pressed = 0; int ch = -1; - while (!pressed) { - if (kbhit ()) { - ch =::getch (); - pressed = 1; - } - Sleep (10); + while (!kbhit ()) { + ch =::getch (); } + return ch; } #else