Automating screencasts
- Install asciicast (opens in a new tab) and an asciicast-to-gif converter such as agg (opens in a new tab)
- Write a session script (see demo.el in this repository for a minimal example, or run-command’s demo.el (opens in a new tab) for a real-life example) and save it as e.g.
my-session-script.el
- Launch with:
$ asciinema rec demo.cast -c 'emacs -nw -Q -l director-bootstrap.el -l my-session-script.el'
- Review the recording with:
asciinema play demo.cast
- Convert to a gif with:
agg demo.cast demo.gif
See Running in a controlled environment for information about director-bootstrap.el
.