module Dev::UI::Terminal
Public Class Methods
width()
click to toggle source
Returns the width of the terminal, if possible Otherwise will return 80
# File lib/dev/ui/terminal.rb, line 10 def self.width if console = IO.respond_to?(:console) && IO.console console.winsize[1] else 80 end rescue Errno::EIO 80 end