Skip to content
/ vhs Public
forked from charmbracelet/vhs

Your CLI home video recorder 📼

License

Notifications You must be signed in to change notification settings

winder/vhs

Repository files navigation

Dolly

GIFs as code. Record GIFs for terminal applications with a just few lines of code 🎬.

Automatic GIF recording with dolly

The above example is generated from a single dolly file: (demo.vhs).

Tutorial

Type anything into the terminal with the Type command.

Type "echo 'Hello, world!'"

Press the Enter key with the Enter command.

Enter

Press the Backspace key in the terminal with the Backspace command.

Backspace

Wait for a certain amount of time with the Sleep command.

Sleep 1s

Putting it all together...

Type "echo 'Hello World'"
Enter
Backspace 5
Sleep 1s

Save the above text to a file (demo.vhs) and generate the GIF with dolly:

dolly demo.vhs
open out.gif

Commands

The following is an exhaustive list of all the commands that can be used with dolly.

Backspace[@<time>] [count]
Enter[@<time>] [count]
Sleep <time>
Space[@<time>] [count]
Type[@<time>] <characters...>

Down[@<time>] [count]
Left[@<time>] [count]
Right[@<time>] [count]
Up[@<time>] [count]

Alt+<character>
Ctrl+<character>

Feedback

We’d love to hear your thoughts on this project. Feel free to drop us a note!

License

MIT


Part of Charm.

The Charm logo

Charm热爱开源 • Charm loves open source

About

Your CLI home video recorder 📼

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.0%
  • Dockerfile 1.4%
  • Other 0.6%