asciinema
Open source terminal session recorder
...Recording is as easy as running one command, and since it’s purely text-based you can copy and paste any content you want, simply pause the recording! You can also easily share your recordings on the web, embed an asciicast player in your blog post, project documentation page or in your conference talk slides.
See plenty of example sessions recorded with asciinema here: https://asciinema.org/