Add option to toggle pty