module

Opal::Asciicast

Asciinema v2 terminal session recording, playback, and parsing. Available via optional require: require "opal/asciicast" require "opal/asciicast/asciinema"

Class methods

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.

Source
read(path_or_content : String) : Reader::Recording

Reads and parses an Asciinema v2 recording from a file path or raw string content.

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

Source

Nested types