function similar to kbhit()

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

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.

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.