in reply to Re^2: detect input available from command line
in thread detect input available from command line

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.

  • Comment on Re^3: detect input available from command line