- Apr 4, 2001
- 2,776
- 0
- 0
I'm currently trying to write a program in Linux (Red Hat to be exact) that will basically poll the keyboard then serial port in a loop. If input should appear at the serial port it will display to screen, if keyboard is hit, it will be diplayed to screen and send it out through the serial port after a '\n' or '\0' is received. i've looked through all the POSIX serial code online and i think i've got the write code that i want however, when i use FNDELAY in the fcntl function nothing will allow me to input to the serial port. Once i take that FNDELAY out of the fcntl function it works fine (exept it will halt until input is received from the serial port). Any sample code i can use from any of you?