Fix deprecation warnings about tty_cols()
Define tty_size() for backwards compatibility