Set tty raw mode when using a pty.
Merge pull request #19 from landonf/landonf-pty-fix

Set tty raw mode when using a pty.