Fix fixing deprecated function

Fixing this ```WARNING: tty_cols() is deprecated, use tty_size() instead```