# File lib/pry/terminal.rb, line 42 def screen_size_according_to_io_console return if Pry::Helpers::BaseHelpers.jruby? require 'io/console' $stdout.winsize if $stdout.tty? and $stdout.respond_to?(:winsize) rescue LoadError # They probably don't have the io/console stdlib or the io-console gem. # We'll keep trying. end