VHS looks neat for generating demos

I’ve been playing around with VHS this morning which looks like a neat tool for scripting some CLI interaction and then generating a GIF from it.

Could be useful for rich/textual demos so thought I’d share it here.

Quick demo of the stopwatch app
demo

VHS tape script.

Output demo.gif

Set FontSize 28
Set Width 1200
Set Height 600
Set Padding 10

Type "python demo.py"

Sleep 500ms
Enter

Sleep 2s
Tab

Sleep 500ms
Type "r"

Sleep 500ms
Type "r"

Sleep 500ms
Enter

Sleep 5s

Sleep 500ms
Type "a"

Sleep 2s
Ctrl+c

Sleep 2s
2 Likes