lib/whirled_peas/command/themes.rb in whirled_peas-0.11.1 vs lib/whirled_peas/command/themes.rb in whirled_peas-0.12.0
- old
+ new
@@ -33,16 +33,18 @@
settings.height = 12
20.times.map { |i| Math.sqrt(i) }
end
end
Utils::Ansi.with_screen do |width, height|
- rendered = Graphics::Renderer.new(
+ strokes = Graphics::Renderer.new(
template,
80,
30
).paint
- Device::Screen.new(10000).handle_renders([rendered])
+ Device::Screen.new.handle_rendered_frames(
+ [Device::RenderedFrame.new(strokes, 0)]
+ )
end
if index < theme_names.length - 1
print 'See next theme? [Y/q] '
STDOUT.flush
@@ -60,10 +62,9 @@
attr_reader :config_file
def validate!
super
config_file = args.shift
- @error_text = 'hi'
unless config_file.nil?
# We think we have a valid ruby config file, set the absolute path to @config
@config_file = config_file[0] == '/' ? config_file : File.join(Dir.pwd, config_file)
end
end