diff options
Diffstat (limited to 'ext/io/console/lib/console/size.rb')
-rw-r--r-- | ext/io/console/lib/console/size.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/io/console/lib/console/size.rb b/ext/io/console/lib/console/size.rb index e9d8a1fbb6..519bc3be6d 100644 --- a/ext/io/console/lib/console/size.rb +++ b/ext/io/console/lib/console/size.rb @@ -1,3 +1,4 @@ +# fallback to console window size def IO.default_console_size [ ENV["LINES"].to_i.nonzero? || 25, @@ -12,6 +13,7 @@ rescue LoadError alias console_size default_console_size end else + # returns console window size def IO.console_size console.winsize rescue NoMethodError |