I\'m trying to communicate with an external program which, if executed, will run a terminal interface. Normally I\'ll have to provide some inputs (e.g. "1+1") and then