One thing you can do is start a second thread. Let that thread do the blocking read, and pass results to the main thread as they become available.
In reply to Re^3: detect input available from command line
by Anonymous Monk
in thread detect input available from command line
by mifflin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |