Switch from deprecated 'tty_rows' to 'tty_size'

Using 'tty_rows' throws a warning, indicating that it is deprecated.