class WhirledPeas::Command::Still
Display a still frame with the specified arguments.
Public Class Methods
description()
click to toggle source
# File lib/whirled_peas/command/still.rb, line 9 def self.description 'Show the specified still frame' end
Public Instance Methods
start()
click to toggle source
Calls superclass method
WhirledPeas::Command::ConfigCommand#start
# File lib/whirled_peas/command/still.rb, line 13 def start super require 'whirled_peas/device/screen' require 'whirled_peas/graphics/renderer' require 'whirled_peas/utils/ansi' Utils::Ansi.with_screen do |width, height| strokes = Graphics::Renderer.new( WhirledPeas.config.template_factory.build(frame, frame_args), width, height ).paint Device::Screen.new.handle_rendered_frames( [Device::RenderedFrame.new(strokes, 0)] ) end end