2014-01-22
I recently had occasion to display a terminal session on a web page. I captured a typescript using script and ran that through aha to generate HTML, but it used hard-coded colors that match neither my terminal nor this site:
So I added the option to annotate color with classes instead, e.g.:
With a custom stylesheet to map names to a color scheme, in this case Monokai Light,
the result turned out nicely: