module
Opal::Asciicast
Overview
Asciinema v2 terminal session recording, playback, and parsing. Available via optional require: require "opal/asciicast" require "opal/asciicast/asciinema"
Defined in:
opal/asciicast.cropal/asciicast/driver.cr
opal/asciicast/event.cr
opal/asciicast/header.cr
opal/asciicast/playback_engine.cr
opal/asciicast/reader.cr
opal/asciicast/screen_recorder.cr
opal/asciicast/uploader.cr
opal/asciicast/vcr.cr
opal/asciicast/writer.cr
Class Method Summary
-
.create_driver(width : Int32 = 80, height : Int32 = 24, title : String = "Opal Session", time_advance : Float64 = 0.05) : Driver
Creates a headless recording driver that can be passed into any Opal TUI component or TEA program.
-
.read(path_or_content : String) : Reader::Recording
Reads and parses an Asciinema v2 recording from a file path or raw string content.
-
.record(output_path : String, width : Int32 = 80, height : Int32 = 24, title : String = "Opal Session", term : String = "xterm-256color", &block : Writer -> Nil) : Writer
Records a programmatic terminal session directly to an Asciinema v2 (.cast) file.
Class Method Detail
def self.create_driver(width : Int32 = 80, height : Int32 = 24, title : String = "Opal Session", time_advance : Float64 = 0.05) : Driver
#
Creates a headless recording driver that can be passed into any Opal TUI component or TEA program.
def self.read(path_or_content : String) : Reader::Recording
#
Reads and parses an Asciinema v2 recording from a file path or raw string content.