Use enablePTY() to get a PTY with exec() calls. While exec() is running
you can use read() and write() to interact with the shell.
Merge pull request #71 from tamagokun/exec_with_pty

enablePTY() disablePTY() for use with exec()