Cast files

Reference docs

Asciicast.HeaderType
Base.@kwdef struct Header
    version::Int=2
    width::Int=80
    height::Int=24
    timestamp::Union{Int, Nothing}=floor(Int, datetime2unix(now()))
    duration::Union{Float64, Nothing}=nothing
    idle_time_limit::Union{Float64, Nothing}=nothing
    command::Union{String, Nothing}=nothing
    title::Union{String, Nothing}=nothing
    env::Union{Dict{String, String},Nothing}=Dict{String, String}("SHELL" => get(ENV, "SHELL", "/bin/bash"),
                                            "TERM" => get(ENV, "TERM", "xterm-256color"))
    theme::Union{Dict{String, String},Nothing}=nothing
end

The header of an asciicast file. Documented at https://github.com/asciinema/asciinema/blob/v2.4.0/doc/asciicast-v2.md#header.

source
Asciicast.EventType
struct Event
    time::Float64
    type::EventType
    event_data::String
end

Represents an event in a cast file. See also EventType.

source