I was wondering if anybody knew how to go about automatically writing one
character over a serial line as soon as the the key was pressed. Right now
my code will send over a serial line but only once return is pressed then it
will send whatever happens to be on the current line out. Help is greatly
appreciated, since kbhit() is not an option here.
What do you mean by “since kbhit() is not an option here”? Use raw mode to transfer. If you need
kbhit(), use tcischars(1), there was a lot info on this question in newsgroup. The last one you
could see is:
Newsgroups: qdn.public.qnxrtp.os
Subject: Re: No Kbhit?
Date: 4 Jun 2002 07:07:36 GMT
Xref: inn.qnx.com qdn.public.qnxrtp.os:8154
I was wondering if anybody knew how to go about automatically writing one
character over a serial line as soon as the the key was pressed. Right now
my code will send over a serial line but only once return is pressed then it
will send whatever happens to be on the current line out. Help is greatly
appreciated, since kbhit() is not an option here.