change pty config