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>
- Read output only while input is not asked Limits
- Read output only while input is not asked hamidrb80
- Read output only while input is not asked ynfle
- Read output only while input is not asked demotomohiro
- Read output only while input is not asked Limits
- Read output only while input is not ask... demotomohiro