pass in int() args to get_pty

If LINES or COLUMNS was set, get_pty was failing because it was
expecting an int value to be passed in.
Merge pull request #2193 from szinck/devel

pass in int() args to get_pty