module
Opal::Asciinema
Overview
Asciinema alias for the asciicast recording and playback subsystem. Available via optional require: require "opal/asciicast/asciinema"
Defined in:
opal/asciicast/asciinema.crClass Method Summary
-
.new_vcr : Asciicast::VCR
Instantiates an isolated VCR cassette deck
-
.play(path_or_content : String, speed : Float64 = 1.0, loop : Bool = false, &block : UI::Buffer, Int32 -> Nil) : Nil
Loads and plays back an Asciinema v2 (.cast) recording.
-
.record(output_path : String, width : Int32 = 80, height : Int32 = 24, title : String = "Opal Session", term : String = "xterm-256color", &block : Asciicast::VCR -> Nil) : Asciicast::VCR
Records an application session directly to an Asciinema v2 (.cast) file.
Class Method Detail
def self.play(path_or_content : String, speed : Float64 = 1.0, loop : Bool = false, &block : UI::Buffer, Int32 -> Nil) : Nil
#
Loads and plays back an Asciinema v2 (.cast) recording.
def self.record(output_path : String, width : Int32 = 80, height : Int32 = 24, title : String = "Opal Session", term : String = "xterm-256color", &block : Asciicast::VCR -> Nil) : Asciicast::VCR
#
Records an application session directly to an Asciinema v2 (.cast) file.