instance method IO#winsize

winsize -> [Integer, Integer][permalink][rdoc][edit] [added by io/console]

端末のサイズを [rows, columns] で返します。