Method: GLI::Terminal#size

Defined in:
lib/gli/terminal.rb

#sizeObject

Get the size of the current terminal. Ripped from hirb

Returns an Array of size two Ints representing the terminal width and height



80
81
82
83
84
85
# File 'lib/gli/terminal.rb', line 80

def size
  SIZE_DETERMINERS.select { |(predicate,ignore)| predicate.call }.first[1].call
rescue Exception => ex
  raise ex if @unsafe
  Terminal.default_size
end