Skip to content

Instantly share code, notes, and snippets.

@xmlking
Last active September 8, 2018 20:23
Show Gist options
  • Save xmlking/722b678df0118dc30f02790cfe9cdaa5 to your computer and use it in GitHub Desktop.
Save xmlking/722b678df0118dc30f02790cfe9cdaa5 to your computer and use it in GitHub Desktop.
How to screen record your terminal?

Guide to setup tools to record your terminal and share.

  1. Install asciinema
# install asciinema with
brew install asciinema
# start recording with:
asciinema rec
# to finish hit Ctrl-D or type exit.
# start recording to a file
asciinema rec sumo.cast
# play recording from file
asciinema play sumo.cast
asciinema play https://asciinema.org/a/22124.cast
asciinema play https://asciinema.org/a/Luby9epJikRO83c99E80K02Uh
# Manage your recordings (optional)
asciinema auth
  1. Install svg-term-cli
npm install -g svg-term-cli
# Generate the parrot.svg example from asciicast
svg-term --cast=113643 --out examples/parrot.svg --window
# from file
cat docs/commitlint.json | svg-term --out docs/commitlint.svg --frame --profile=Seti --height=20 --width=80

Sharing

via Markdown

[![asciicast](https://asciinema.org/a/Luby9epJikRO83c99E80K02Uh.png)](https://asciinema.org/a/Luby9epJikRO83c99E80K02Uh)

asciicast

via link

https://asciinema.org/a/Luby9epJikRO83c99E80K02Uh

via Embed the player

<script src="https://asciinema.org/a/Luby9epJikRO83c99E80K02Uh.js" id="asciicast-Luby9epJikRO83c99E80K02Uh" async></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment