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.cr

Class Method Summary

Class Method Detail

def self.new_vcr : Asciicast::VCR #

Instantiates an isolated VCR cassette deck


[View source]
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.


[View source]
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.


[View source]