class Thor::Shell::Basic
def terminal_width
This code was copied from Rake, available under MIT-LICENSE
def terminal_width if ENV['THOR_COLUMNS'] result = ENV['THOR_COLUMNS'].to_i else result = unix? ? dynamic_width : 80 end (result < 10) ? 80 : result rescue 80 end