lib/remedy/console.rb in remedy-0.1.2 vs lib/remedy/console.rb in remedy-0.2.0

- old
+ new

@@ -2,10 +2,17 @@ module Remedy module Console require 'io/console' - TIOCGWINSZ = 0x40087468 + TIOCGWINSZ = case RbConfig::CONFIG['host_os'] + when /darwin|mac os/ + 0x40087468 + when /linux/ + 0x5413 + else + 0x00 + end module_function def input @input ||= $stdin