kbhit() in a native app run from CYGWIN console does not work?

2012-08-03 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C]
Hi All, I have a native Windows app that is run from bash (which is in turn run in a standard Cygwin terminal window, mintty). The application's code uses kbhit() to check whether input is available from the user -- but it looks like kbhit() never indicates any input (when keys are getting

Re: kbhit() in a native app run from CYGWIN console does not work?

2012-08-03 Thread Daniel Colascione
On 8/3/2012 3:33 PM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: Hi All, I have a native Windows app that is run from bash (which is in turn run in a standard Cygwin terminal window, mintty). The application's code uses kbhit() to check whether input is available from the user -- but it