I am running a TProcess which is a process that normally executes in the terminal if I was running it not using Pascal. So far, I have been able to read the output by using
a := TStringList.create;
a.loadFromStream(myProcess.output)
Now, I would like to modify the input; that is to say, I'd like to provide some input to the process that does the same thing as writing to the terminal would do.
myProcess.input.writeansistring('some string')
does not work, and to even try doing that took me a while to figure out. If anyone has any idea how I could provide commands to my TProcess, it would be greatly appreciated.