I write IDE for my own simple programming language with an interpreter. When I got the idea to get the output from the interpreter and redirect it to the IDE, I decided to use QProcess. The output is obtained, but the input also is provided in the interpreter. But, as you know, input is not always, and sometimes you need to enter something several times. So the question is: is it possible to somehow get the information, is the process required to enter data?

    1 answer 1

    To find out whether the input to the second application is needed, you need to receive a message from it or a signal — that is, you can read the output and, upon request for input, submit non-input data. Or arrange communication between applications via d-bus. Then, if necessary, the interpreter will send request messages to the main program.