This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]