Versions in this module Expand all Collapse all v0 v0.1.0 Jun 14, 2026 Changes in this version + const Background + const Black + const Blue + const BrightBlack + const BrightBlue + const BrightCyan + const BrightGreen + const BrightMagenta + const BrightRed + const BrightWhite + const BrightYellow + const Cyan + const ErrorColumnOffset + const Foreground + const Green + const Indigo + const Magenta + const Red + const WaitTick + const White + const Yellow + var CommandFuncs = map[parser.CommandType]CommandFunc + var CommandStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("12")) + var CommitSHA string + var DefaultTheme = Theme + var ErrorFileStyle = ...(defaultColumns) + var ErrorStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("1")) + var EscapeSequences = map[string]string + var FaintStyle = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{ ... }) + var GlamourTheme = ansi.StyleConfig + var GrayStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("8")) + var KeywordStyle = lipgloss.NewStyle() + var LineNumberStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("8")) + var NoneStyle = lipgloss.NewStyle() + var NumberStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("3")) + var Settings = map[string]CommandFunc + var Shells = map[string]Shell + var StringStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("10")) + var TimeStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("11")) + var URLStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("3")) + var Version string + func Evaluate(ctx context.Context, tape string, out io.Writer, opts ...EvaluatorOption) []error + func Execute(c parser.Command, v *VHS) error + func ExecuteAlt(c parser.Command, v *VHS) error + func ExecuteCopy(c parser.Command, _ *VHS) error + func ExecuteCtrl(c parser.Command, v *VHS) error + func ExecuteEnv(c parser.Command, _ *VHS) error + func ExecuteHide(_ parser.Command, v *VHS) error + func ExecuteLoopOffset(c parser.Command, v *VHS) error + func ExecuteNoop(_ parser.Command, _ *VHS) error + func ExecuteOutput(c parser.Command, v *VHS) error + func ExecutePaste(_ parser.Command, v *VHS) error + func ExecuteRequire(c parser.Command, _ *VHS) error + func ExecuteScreenshot(c parser.Command, v *VHS) error + func ExecuteSet(c parser.Command, v *VHS) error + func ExecuteSetBorderRadius(c parser.Command, v *VHS) error + func ExecuteSetCursorBlink(c parser.Command, v *VHS) error + func ExecuteSetFontFamily(c parser.Command, v *VHS) error + func ExecuteSetFontSize(c parser.Command, v *VHS) error + func ExecuteSetFramerate(c parser.Command, v *VHS) error + func ExecuteSetHeight(c parser.Command, v *VHS) error + func ExecuteSetLetterSpacing(c parser.Command, v *VHS) error + func ExecuteSetLineHeight(c parser.Command, v *VHS) error + func ExecuteSetMargin(c parser.Command, v *VHS) error + func ExecuteSetMarginFill(c parser.Command, v *VHS) error + func ExecuteSetPadding(c parser.Command, v *VHS) error + func ExecuteSetPlaybackSpeed(c parser.Command, v *VHS) error + func ExecuteSetShell(c parser.Command, v *VHS) error + func ExecuteSetTheme(c parser.Command, v *VHS) error + func ExecuteSetTypingSpeed(c parser.Command, v *VHS) error + func ExecuteSetWaitPattern(c parser.Command, v *VHS) error + func ExecuteSetWaitTimeout(c parser.Command, v *VHS) error + func ExecuteSetWidth(c parser.Command, v *VHS) error + func ExecuteSetWindowBar(c parser.Command, v *VHS) error + func ExecuteSetWindowBarSize(c parser.Command, v *VHS) error + func ExecuteShift(c parser.Command, v *VHS) error + func ExecuteShow(_ parser.Command, v *VHS) error + func ExecuteSleep(c parser.Command, _ *VHS) error + func ExecuteType(c parser.Command, v *VHS) error + func ExecuteWait(c parser.Command, v *VHS) error + func Highlight(c parser.Command, faint bool) string + func LineNumber(line int) string + func Main() + func MakeBorderRadiusMask(width, height, radius int, targetpng string) + func MakeGIF(opts VideoOptions) *exec.Cmd + func MakeMP4(opts VideoOptions) *exec.Cmd + func MakeScreenshots(opts ScreenshotOptions) []*exec.Cmd + func MakeWebM(opts VideoOptions) *exec.Cmd + func MakeWindowBar(termWidth, termHeight int, opts StyleOptions, file string) + func Publish(ctx context.Context, path string) (string, error) + func Record(_ *cobra.Command, _ []string) error + func Underline(n int) string + type CommandFunc func(c parser.Command, v *VHS) error + func ExecuteKey(k input.Key) CommandFunc + func ExecuteScroll(direction int) CommandFunc + type EvaluatorOption func(*VHS) + type FilterComplexBuilder struct + func NewScreenshotFilterComplexBuilder(style *StyleOptions) *FilterComplexBuilder + func NewVideoFilterBuilder(videoOpts *VideoOptions) *FilterComplexBuilder + func (fb *FilterComplexBuilder) Build() []string + func (fb *FilterComplexBuilder) WithBorderRadius(cornerMarkStream int) *FilterComplexBuilder + func (fb *FilterComplexBuilder) WithGIF() *FilterComplexBuilder + func (fb *FilterComplexBuilder) WithMarginFill(marginStream int) *FilterComplexBuilder + func (fb *FilterComplexBuilder) WithWindowBar(barStream int) *FilterComplexBuilder + type InvalidSyntaxError struct + Errors []parser.Error + func (e InvalidSyntaxError) Error() string + type Options struct + CursorBlink bool + FontFamily string + FontSize int + LetterSpacing float64 + LineHeight float64 + LoopOffset float64 + Screenshot ScreenshotOptions + Shell Shell + Style StyleOptions + Test TestOptions + Theme Theme + TypingSpeed time.Duration + Video VideoOptions + WaitPattern *regexp.Regexp + WaitTimeout time.Duration + func DefaultVHSOptions() Options + type ScreenshotOptions struct + func NewScreenshotOptions(input string, style *StyleOptions) ScreenshotOptions + type Shell struct + Command []string + Env []string + type StreamBuilder struct + func NewStreamBuilder(streamCounter int, input string, style *StyleOptions) *StreamBuilder + func (sb *StreamBuilder) Build() []string + func (sb *StreamBuilder) WithBar() *StreamBuilder + func (sb *StreamBuilder) WithCorner() *StreamBuilder + func (sb *StreamBuilder) WithMP4() *StreamBuilder + func (sb *StreamBuilder) WithMargin() *StreamBuilder + func (sb *StreamBuilder) WithWebm() *StreamBuilder + type StyleOptions struct + BackgroundColor string + BorderRadius int + Height int + Margin int + MarginFill string + Padding int + Width int + WindowBar string + WindowBarColor string + WindowBarSize int + func DefaultStyleOptions() *StyleOptions + type TestOptions struct + Golden string + Output string + func DefaultTestOptions() TestOptions + type Theme struct + Background string + Black string + Blue string + BrightBlack string + BrightBlue string + BrightCyan string + BrightGreen string + BrightMagenta string + BrightRed string + BrightWhite string + BrightYellow string + Cursor string + CursorAccent string + Cyan string + Foreground string + Green string + Magenta string + Name string + Red string + Selection string + White string + Yellow string + func (t Theme) String() string + type ThemeNotFoundError struct + Suggestions []string + Theme string + func (e ThemeNotFoundError) Error() string + type VHS struct + CursorCanvas *rod.Element + Errors []error + Options *Options + Page *rod.Page + TextCanvas *rod.Element + func New() VHS + func (v *VHS) Buffer() ([]string, error) + func (v *VHS) CurrentLine() (string, error) + func (v *VHS) SaveOutput() error + func (vhs *VHS) ApplyLoopOffset() error + func (vhs *VHS) Cleanup() error + func (vhs *VHS) PauseRecording() + func (vhs *VHS) Record(ctx context.Context) <-chan error + func (vhs *VHS) Render() error + func (vhs *VHS) ResumeRecording() + func (vhs *VHS) ScreenshotNextFrame(path string) + func (vhs *VHS) Setup() + func (vhs *VHS) Start() error + type VideoOptions struct + Framerate int + Input string + MaxColors int + Output VideoOutputs + PlaybackSpeed float64 + StartingFrame int + Style *StyleOptions + func DefaultVideoOptions() VideoOptions + type VideoOutputs struct + Frames string + GIF string + MP4 string + WebM string