asciinema

  1. Install
    # on MacOS
    $ brew install asciinema
    
    # Ubuntu
    $ sudo apt-add-repository ppa:zanchey/asciinema
    $ sudo apt-get update
    $ sudo apt-get install asciinema
    
    # pip
    $ sudo pip3 install asciinema
    
  2. Record
    $ asciinema rec
    
  3. stop recording; <html><kbd>CTRL</kbd></html> + <html><kbd>D</kbd></html>
  4. Manage recording (Optional)
    $ asciinema auth
    

References