inigo:tmp> script Script started, file is typescript inigo:tmp> git --no-pager log --pretty=format:"" --graph # # lots of colour output # inigo:tmp> exit exit Script done, file is typescript # http://www.pixelbeat.org/scripts/ansi2html.sh inigo:tmp> cat typescript | ansi2html.sh > typescript.html # OR using aha (brew install aha) inigo:tmp> cat typescript | aha --black > typescript.html