Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AsciiCastConverter ¶
type AsciiCastConverter struct {
// Version is the version of the asciicast format
Version int
// TerminalWidth is the width of the terminal in columns
TerminalWidth int
// TerminalHeight is the height of the terminal in rows
TerminalHeight int
// LinesPerChunk controls how many lines we group together in a single event
LinesPerChunk int
// ChunkSpeedDivisor controls how the chunk size affects timing
ChunkSpeedDivisor float64
// MinTimeIncrement is the minimum time between events in seconds
MinTimeIncrement float64
// MaxTimeIncrement is the maximum time between events in seconds
MaxTimeIncrement float64
}
AsciiCastConverter handles the conversion of text output to asciicast format.
func NewAsciiCastConverter ¶
func NewAsciiCastConverter() *AsciiCastConverter
NewAsciiCastConverter creates a new converter with default settings.
func (*AsciiCastConverter) ToAsciiCast ¶
func (c *AsciiCastConverter) ToAsciiCast(stdout string, writer io.Writer) error
ToAsciiCast converts a string of stdout to asciicast format and writes it to the given writer.
Click to show internal directories.
Click to hide internal directories.