class Pry::Output

def actual_screen_size

def actual_screen_size
  # The best way, if possible (requires non-jruby >=1.9 or io-console gem).
  io_console_size ||
    # Fall back to the old standby, though it might be stale.
    env_size ||
    # Fall further back, though this one is also out of date without
    # something calling Readline.set_screen_size.
    readline_size ||
    # Windows users can otherwise run ansicon and get a decent answer.
    ansicon_env_size
end