$ asciinema rec test.cast <do stuff in the terminal then ctrl-d> $ cat test.cast | svg-term --out=test.svg
edit: formatting