db_bridge/console.cpp
changeset 69 b5912e5f899f
parent 65 76514757b0d6
equal deleted inserted replaced
68:d549894aa6a9 69:b5912e5f899f
    11 
    11 
    12 int Console::getch ()
    12 int Console::getch ()
    13 {
    13 {
    14     int ch = -1;
    14     int ch = -1;
    15 
    15 
    16     while (!kbhit ()) {
    16     ch =::getch ();
    17         ch =::getch ();
       
    18     }
       
    19 
    17 
    20     return ch;
    18     return ch;
    21 }
    19 }
    22 #else
    20 #else
    23 #include <termios.h>
    21 #include <termios.h>