Fix for a regression where the size of the terminal was incorrectly reported to the pty.
Fix for a regression where the size of the terminal was incorrectly reported to the pty.

sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm,sedwards2009/extraterm