lib/whirled_peas/utils/ansi.rb in whirled_peas-0.8.0 vs lib/whirled_peas/utils/ansi.rb in whirled_peas-0.9.0
- old
+ new
@@ -26,10 +26,10 @@
# Bright colors are offset by this much from their standard versions
BRIGHT_OFFSET = 60
class << self
- def with_screen(output, width: nil, height: nil, &block)
+ def with_screen(output=STDOUT, width: nil, height: nil, &block)
require 'highline'
unless width && height
width, height = HighLine.new.terminal.terminal_size
end
yield width, height