Added calculation for visible rows/columns, this was useful for
me to set the correct PTYsize. Added function to get these values.