How can I acknowledge the reading of an active std:cin call of a running C++ program from within another console?
Please: This IS NO DUPLICATE of e.g. Simulating ENTER keypress in bash script, because I don't want to input text to the program itself but to the std:cin that is running within a loop of that program.
So, the running program waits in the console by saying "Enter option:". Manually I would enter something and then press enter.
Entering text via
echo "some text" > /proc/18553/fd/0
works but I cannot redirect the enter-key to enter/end the text as I can by physically hitting the enter key.
This fellow here has or had the same problem: