I have a C++ program that waits for some text input with getline(), and it works well from the command line. However, I would like to call it from Python – send some text, get the output, and have it wait for more input. I tried with subprocess, but it seems that getline() in this case doesn’t wait for input