set right window size for pty