tape

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package tape converts a btest.Session into a VHS .tape script.

VHS (github.com/charmbracelet/vhs) is a tool that renders terminal sessions as GIFs from a declarative tape script. This package bridges the blit .tuisess format to the VHS tape format so recorded sessions can be turned into shareable GIFs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(sess *btest.Session) string

Generate converts a btest.Session into a VHS tape script string.

The resulting script contains:

  • A preamble that sets the terminal size from the session metadata.
  • A Type, Key, Sleep, or Hide directive for every input step.
  • Screen steps are skipped (they are blit assertions, not VHS directives).

Types

This section is empty.

Jump to

Keyboard shortcuts

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