Added calculation for visible rows/columns, this was useful for
me to set the correct PTYsize. Added function to get these values.
Merge pull request #324 from marcb1/master

Added calculation for visible rows/columns