Module: Dex::UI::Terminal

Defined in:
lib/dex/ui/terminal.rb

Class Method Summary collapse

Class Method Details

.widthObject



7
8
9
10
11
12
13
14
15
# File 'lib/dex/ui/terminal.rb', line 7

def self.width
  if console = IO.console
    console.winsize[1]
  else
    80
  end
rescue Errno::EIO
  80
end