# HG changeset patch # User Markus Bröker # Date 1239879039 -7200 # Node ID b5912e5f899f810f9554a1eae712a895551cbc7e # Parent d549894aa6a921d2bb01fc496a6ed99478acf9a3 Useless cross_getch hack removed cross_getch provides a version of getch for every os. The Windows Part does not work under wine, but it works on the target platform. committer: Markus Bröker diff --git a/db_bridge/console.cpp b/db_bridge/console.cpp --- a/db_bridge/console.cpp +++ b/db_bridge/console.cpp @@ -13,9 +13,7 @@ { int ch = -1; - while (!kbhit ()) { - ch =::getch (); - } + ch =::getch (); return ch; } diff --git a/libConsole/cross_getch.c b/libConsole/cross_getch.c --- a/libConsole/cross_getch.c +++ b/libConsole/cross_getch.c @@ -9,9 +9,7 @@ { int ch = -1; - while (!kbhit ()) { - ch = getch (); - } + ch = getch (); return ch; }