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

Lavrentiev, Anton (NIH/NLM/NCBI) [C] lavr@ncbi.nlm.nih.gov
Fri Aug 3 22:36:00 GMT 2012


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



More information about the Cygwin mailing list