TOIlet (toilet) & FFmpeg: Capturing (formatted) terminal text output as video



for i in {0..9}; do echo "WONDERFUL $i"; done \
| toilet --gay \
| ffmpeg -f tty -i - tty-out.gif

# — oioiiooixiii {gifs} (@oioiiooixiii_) June 15, 2016

To use TOIlet formated text on a webpage:

                                                      ▝       ▝   ▝           ▝       ▝   ▝   ▝    ▄▖ ▗▄   ▄▖ ▗▄  ▗▄   ▄▖  ▄▖ ▗▄  ▗ ▗ ▗▄  ▗▄  ▗▄   ▐▘▜  ▐  ▐▘▜  ▐   ▐  ▐▘▜ ▐▘▜  ▐   ▙▌  ▐   ▐   ▐   ▐ ▐  ▐  ▐ ▐  ▐   ▐  ▐ ▐ ▐ ▐  ▐   ▟▖  ▐   ▐   ▐   ▝▙▛ ▗▟▄ ▝▙▛ ▗▟▄ ▗▟▄ ▝▙▛ ▝▙▛ ▗▟▄ ▗▘▚ ▗▟▄ ▗▟▄ ▗▟▄                                                                                                   
# Basic syntax for html output
toilet -f smmono9 --html oioiiooixiii
                                                                                             ▗▄    ▗▄  ▗▄      ▗▄    ▗▄  ▗▄  ▗▄   ▐▘    ▐▘       ▐▘ ▐▘                                                ▝▙ ▗▟ ▝▙ ▗▟ ▗▟ ▝▙ ▝▙ ▗▟ ▗▘ ▗▟ ▗▟ ▗▟                                                                                                   
# Strips out <br /> tags to improve formatting in blogger
htmlText="$(toilet -f smmono9 --gay --html oioiiooixiii)"
echo "${htmlText//"<br />"/""}"
more info: http://libcaca.zoy.org/toilet.html