Hacked By AnonymousFox

Current Path : /proc/thread-self/root/proc/thread-self/root/proc/self/root/opt/alt/ruby31/share/ruby/io/console/
Upload File :
Current File : //proc/thread-self/root/proc/thread-self/root/proc/self/root/opt/alt/ruby31/share/ruby/io/console/size.rb

# frozen_string_literal: false
# fallback to console window size
def IO.default_console_size
  [
    ENV["LINES"].to_i.nonzero? || 25,
    ENV["COLUMNS"].to_i.nonzero? || 80,
  ]
end

begin
  require 'io/console'
rescue LoadError
  class << IO
    alias console_size default_console_size
  end
else
  # returns console window size
  def IO.console_size
    console.winsize
  rescue NoMethodError
    default_console_size
  end
end

Hacked By AnonymousFox1.0, Coded By AnonymousFox