I'm using C (gcc) and ncurses, to make a program that will be monitoring data coming from the serial port. The program has a big while
, where it reads the data coming from the port and at the same time, it prints that info in the screen...
But the problem is here:
How can it read input from my keyboard, (since getch()
freezes the program until it gets an input) and at the same time read info coming from the port?
Maybe I have to use another way (not the big while
), so ideas are welcome!
Thanks!