Hi all! I want to manipulate program through nim in a way "expect" utility works. I used osproc module, which gives access to input and output streams, but naive approach doesn't work, because program hangs in waiting for subprocess output (im calling read_line function) while subprocess's input stream is empty. I would like to know, how can i determine this and go further, feeding data into subprocess input stream. I want to do this in single thread right now.
Thank you!