function similar to kbhit()

bridged with qdn.public.ddk.input
Post Reply
Kevin Weisser

function similar to kbhit()

Post by Kevin Weisser » Thu Jun 06, 2002 1:01 pm

I am writing code to send characaters over a serial line, and right now it
only sends once the Enter key is pressed. Is there a way to write the code
so that the character is send as soon as the key is pressed? Some versions
of C allow for kbhit() but I can't use that. So any other solutions are
welcome.

kweisser@udel.edu
Kevin Weisser

David Gibbs

Re: function similar to kbhit()

Post by David Gibbs » Fri Jun 07, 2002 2:59 pm

Kevin Weisser <kweisser@udel.edu> wrote:
I am writing code to send characaters over a serial line, and right now it
only sends once the Enter key is pressed. Is there a way to write the code
so that the character is send as soon as the key is pressed? Some versions
of C allow for kbhit() but I can't use that. So any other solutions are
welcome.
Answered in much detail elsewhere.

-David
--
QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

David Gibbs

Re: function similar to kbhit()

Post by David Gibbs » Tue Jun 11, 2002 3:46 pm

Kevin Weisser <kweisser@udel.edu> wrote:
I am writing code to send characaters over a serial line, and right now it
only sends once the Enter key is pressed. Is there a way to write the code
so that the character is send as soon as the key is pressed? Some versions
of C allow for kbhit() but I can't use that. So any other solutions are
welcome.
Answered in much detail elsewhere.

-David
--
QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

Post Reply

Return to “qdn.public.ddk.input”