flâneur

charmbracelet/vhs: Your CLI home video recorder 📼 ·

github.com · 2,305 words · saved by 1 readers

Tape files consist of a series of commands. The commands are instructions for VHS to perform on its virtual terminal. For a list of all possible commands see the command reference. Once you've finished, save the file and feed it into VHS. All done! You should see a new file called demo.gif (or whatever you named the Output) in the directory. For more examples see the examples/ directory. Note VHS requires ttyd and ffmpeg to be installed and available on your PATH. Use a package manager: Or, use Docker to run VHS directly, dependencies included: Or, download it: Or, just install it with go: VHS has the ability to generate tape files from your terminal actions! To record to a tape file, run: Perform any actions you want and then exit the terminal session to stop recording. You may want to manually edit the generated .tape file to add settings or modify actions. Then, you can generate the GIF: VHS allows you to publish your GIFs to our servers for easy sharing with your friends and collea

Write terminal GIFs as code for integration testing and demoing your CLI tools. The above example was generated with VHS (view source). Tutorial To get started, install VHS and create a new .tape file. vhs new demo.tape Open the .tape file with your favorite $EDITOR. vim demo.tape Tape files consist of a series of commands. The commands are instructions for VHS to perform on its virtual terminal. For a list of all possible commands see the command reference. # Where should we write the GIF? Output demo.gif # Set up a 1200x600 terminal with 46px font. Set FontSize 46 Set Width 1200…

saved by

related reading