asciicast

package
v0.0.0-...-c9adafc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogTimeFormat string = "20060102-150405"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type VirtualScreen

type VirtualScreen struct {
	// contains filtered or unexported fields
}

func NewVirtualScreen

func NewVirtualScreen(w, h int, title string) *VirtualScreen

NewVirtualScreen creates new virtual screen struct, provide it with console size and title that would in the asciicast file header

func (*VirtualScreen) Write

func (vs *VirtualScreen) Write(w io.Writer) error

Write writes the asciicast file in buffer to the writer

func (*VirtualScreen) WriteFrame

func (vs *VirtualScreen) WriteFrame(frame *image.RGBA, delay int)

WriteFrame write a image.RGBA into the string builder in asciicast format

func (*VirtualScreen) WriteToFile

func (vs *VirtualScreen) WriteToFile(filename string) error

Write writes the asciicast file in buffer to the file

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL