Possible solutions for this are:
- use a thread for your keyboard interaction, it won't block the rest of the process
- use select to check if a character is ready to be read before reading it
- set file descriptor 0 to non blocking mode (O_NONBLOCK)
|