When working on this site, I’ve often wanted to include a screenshot or two.
But since git doesn’t work well with binary files and I don’t want to have to deal with media hosting I’ve tended to shy away from it.
However, a lot of what I want to take a screenshot of can be rendered in a terminal.
Which is suddenly quite interesting as a terminal’s contents can be entirely described in plain(-ish) text.
Surely it must be possible to capture the contents of a terminal window and then render it as some kind of image? Perhaps an SVG?
Yes it is!
In this blog post I describe how I arrived at the workflow I used to include the above screenshot on this website.