def terminal_width
      if defined? JRUBY_VERSION
        default_width = 80
      else
        default_width = `stty size`.split.map { |x| x.to_i }.reverse.first - 1
      end
      @terminal_width ||= default_width
    end
def terminal_width
      if defined? JRUBY_VERSION
        default_width = 80
      else
        default_width = `stty size`.split.map { |x| x.to_i }.reverse.first - 1
      end
      @terminal_width ||= default_width
    end
A Unix trick using stty to get the console columns

 @return [Fixnum]