Your issue is that b is waiting to receive input and you are waiting to read a 
line until the stream closes. Try 
<https://nim-lang.org/docs/streams.html#peekChar%2CStream>

Reply via email to