lib/dev/ui/terminal.rb in dev-ui-0.1.1 vs lib/dev/ui/terminal.rb in dev-ui-0.1.2

- old
+ new

@@ -6,10 +6,10 @@ module Terminal # Returns the width of the terminal, if possible # Otherwise will return 80 # def self.width - if console = IO.console + if console = IO.respond_to?(:console) && IO.console console.winsize[1] else 80 end rescue Errno::EIO