Versions in this module Expand all Collapse all v1 v1.1.1 Jun 21, 2015 v1.1.0 May 25, 2015 v1.0.0 Mar 12, 2015 Changes in this version + func Save(asciicast *Asciicast, path string) error + type Asciicast struct + Command string + Duration Duration + Env *Env + Height int + Stdout []Frame + Title string + Version int + Width int + func Load(path string) (*Asciicast, error) + func NewAsciicast(width, height int, duration float64, command, title string, frames []Frame, ...) *Asciicast + type AsciicastPlayer struct + Terminal terminal.Terminal + func (r *AsciicastPlayer) Play(path string) error + type AsciicastRecorder struct + Terminal terminal.Terminal + func (r *AsciicastRecorder) Record(path, command, title string, maxWait uint, assumeYes bool, ...) error + type Duration float64 + func (d Duration) MarshalJSON() ([]byte, error) + type Env struct + Shell string + Term string + type Frame struct + Data []byte + Delay float64 + func (f *Frame) MarshalJSON() ([]byte, error) + func (f *Frame) UnmarshalJSON(data []byte) error + type Player interface + Play func(string) error + func NewPlayer() Player + type Recorder interface + Record func(string, string, string, uint, bool, map[string]string) error + func NewRecorder() Recorder + type Stream struct + Frames []Frame + func NewStream(maxWait uint) *Stream + func (s *Stream) Close() + func (s *Stream) Duration() time.Duration + func (s *Stream) Write(p []byte) (int, error)