struct Opal::Asciicast::Header

Overview

Represents the Asciinema v2 file header (Line 1 of a .cast recording). Spec: https://github.com/asciinema/asciinema/blob/develop/doc/asciicast-v2.md

Included Modules

Defined in:

opal/asciicast/header.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(width : Int32 = 80, height : Int32 = 24, title : String | Nil = nil, timestamp : Int64 = Time.utc.to_unix, term : String = "xterm-256color", shell : String = "/bin/bash", theme : Hash(String, String) | Nil = nil, idle_time_limit : Float64 | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def env : Hash(String, String) | Nil #

[View source]
def env=(env : Hash(String, String) | Nil) #

[View source]
def height : Int32 #

[View source]
def height=(height : Int32) #

[View source]
def idle_time_limit : Float64 | Nil #

[View source]
def idle_time_limit=(idle_time_limit : Float64 | Nil) #

[View source]
def theme : Hash(String, String) | Nil #

[View source]
def theme=(theme : Hash(String, String) | Nil) #

[View source]
def timestamp : Int64 #

[View source]
def timestamp=(timestamp : Int64) #

[View source]
def title : String | Nil #

[View source]
def title=(title : String | Nil) #

[View source]
def version : Int32 #

[View source]
def version=(version : Int32) #

[View source]
def width : Int32 #

[View source]
def width=(width : Int32) #

[View source]