Skip to content

Instantly share code, notes, and snippets.

@r0mdau
Created February 1, 2022 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r0mdau/994008ccae08dfacdd6b03a84c0bad32 to your computer and use it in GitHub Desktop.
Save r0mdau/994008ccae08dfacdd6b03a84c0bad32 to your computer and use it in GitHub Desktop.
Record a linux terminal

Install asciinema using apt :

apt install asciinema

Install svg-term using npm :

sudo npm install -g svg-term-cli

Record the terminal :

asciinema rec record.cast

Use ctrl + d to stop recording.

Then to generate a dynamic svg file :

cat record.cast | svg-term --out generated.svg --window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment