GIFs as code. Record GIFs for terminal applications with a just few lines of code 🎬.
The above example is generated from a single dolly file: (demo.vhs).
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
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>
We’d love to hear your thoughts on this project. Feel free to drop us a note!
Part of Charm.
Charm热爱开源 • Charm loves open source