On Sunday, 21 February 2016 at 06:24:54 UTC, sanjayss wrote:
On Sunday, 21 February 2016 at 01:06:16 UTC, Ali Çehreli wrote:[...]Thanks. That helps. I am making the stdin non-blocking (but reverting it back before doing the readln()) -- maybe that is causing some problems. Will follow this line of reasoning to see if I can figure out the problem.
Just doing a "stdin.clearerr()" after switching back from non-blocking mode helped. Thanks again.