runProcessPty not functioning correctly
Data written to stdIn is also appearing in stdOut. This has something to do with closing and duplicating the pipes. Moreover, it is common to also let stdErr go through the pty. However, I haven't figured out how to get them separated.
An example can be found here: http://rachid.koucha.free.fr/tech_corner/pty_pdip.html