vendor/bundle/ruby/1.9.1/gems/thor-0.14.6/lib/thor/shell/basic.rb
# This code was copied from Rake, available under MIT-LICENSE
# Copyright (c) 2003, 2004 Jim Weirich
This code was copied from Rake, available under MIT-LICENSE
Copyright (c) 2003, 2004 Jim Weirich
This code was copied from Rake available under MIT - LICENSE Copyright ( c ) 2003 2004 Jim Weirich
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
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
This code was copied from Rake, available under MIT-LICENSE
Copyright (c) 2003, 2004 Jim Weirich
This code was copied from Rake available under MIT - LICENSE Copyright ( c ) 2003 2004 Jim Weirich