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
Click to show internal directories.
Click to hide internal directories.