On Sunday, 10 April 2016 at 08:29:22 UTC, Lass Safin wrote:
I have a multi-threaded program, one thread drawing to a window and handling it, the other handling stdin.[...]
The external program that writes to the input has to close it when it has finished to write.