class Thor::Shell::Basic

def terminal_width

Copyright (c) 2003, 2004 Jim Weirich
This code was copied from Rake, available under MIT-LICENSE
def terminal_width
  result = if ENV["THOR_COLUMNS"]
    ENV["THOR_COLUMNS"].to_i
  else
    unix? ? dynamic_width : DEFAULT_TERMINAL_WIDTH
  end
  result < 10 ? DEFAULT_TERMINAL_WIDTH : result
rescue
  DEFAULT_TERMINAL_WIDTH
end