Switch to Base.tty_size

If @simonster's changes to Base get merged, this updates our usage of `Base.tty_*`.