Change pty setting