Published on

How to Generate Beautiful Terminal Output

Authors

It's quite easy to make beautiful inline terminal outputs that can be included in GitHub readme's like the one below

ocean

Packages Needed

Install

brew install asciinema
npm i -g svg-term-cli

Process

  1. Record your terminal output with asciinema

    asciinema rec test.json --overwrite
    
  2. Take your asciinema json and feed it to svg-term

    svg-term --in test.json --out resources/terminal.svg --window
    

That's it all takes!

These generate svg files and those are supported on GitHub