This is the mail archive of the
cygwin
mailing list for the Cygwin project.
kbhit() in a native app run from CYGWIN console does not work?
- From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr at ncbi dot nlm dot nih dot gov>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Fri, 3 Aug 2012 18:33:34 -0400
- Subject: kbhit() in a native app run from CYGWIN console does not work?
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 pressed).
The app works just fine if started directly from CMD.EXE.
Is that the expected behavior?
http://msdn.microsoft.com/en-US/library/58w7c94c%28v=vs.80%29
Thanks,
Anton Lavrentiev
Contractor NIH/NLM/NCBI
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple