Cast files
Reference docs
Asciicast.Header
— TypeBase.@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.
Asciicast.EventType
— TypeAsciicast.EventType
An enum consisting of Asciicast.OutputEvent
and Asciicast.InputEvent
.
Asciicast.Event
— Typestruct Event
time::Float64
type::EventType
event_data::String
end
Represents an event in a cast file. See also EventType
.
Asciicast.parse_cast
— FunctionAsciicast.parse_cast(io::IO) -> header, events
Returns a tuple consisting of a Header
and vector of Event
's.