After much frustration I decided to call Process.getErrorSteam(),
which gives outputs:
stty: standard input: Invalid argument
top: tcgetattr() failed: Invalid argument
Does anyone know what the exact problem is here?? I've looked at the
man and info pages for stty, but haven't been able to pin point the
problem.