charmbracelet / charmbracelet/vhs

Example outputs at double speed

Open
#88 48 comments 8 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
20.9k
Forks
480
Avg merge
4d 1h
Merged PRs (30d)
2

Description

When I run the demo tape:
```
# Where should we write the GIF?
Output demo.gif

# Set up a 1200x600 terminal with 46px font.
Set FontSize 46
Set Width 1200
Set Height 600

# Type a command in the terminal.
Type "echo 'Welcome to VHS!'"

# Pause for dramatic effect...
Sleep 500ms

# Run the command by pressing enter.
Enter

# Admire the output for a bit.
Sleep 5s
```

I get the following, which seems to be at 2x speed compared to the example in the README:
![demo](https://user-images.githubusercontent.com/8892054/198755846-5ee21475-5a0f-4acb-a888-e53f35cef788.gif)

Contributor guide

Open the contributing guide

Research direction

Start with the demo tape shown in the issue and compare its generated GIF with the example in the README, focusing on playback speed and the timing of Sleep and typing actions. Reproduce the discrepancy, trace the timing behavior from the CLI entry point, and consider the issue done when the demo output matches the README speed without breaking the stated delays.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.