Add option for pty, allowing it to be turned off.