3 ms·
> I enjoyed the _meat_ of the article, but really disliked the stream-of-thought narrative of the post. But I know it's this author's style. So that's fine. Th
by quesera 3y ago
> I enjoyed the _meat_ of the article, but really disliked the stream-of-thought narrative of the post. But I know it's this author's style. So that's fine.
This is why it was such a struggle for me to get through Godel, Escher, Bach as well. If I'm engaged on the topic, I want the author to get straight to the point, not to try to anticipate my questions or lead me with someone else's potted questions.
> Anyway. Is there something better than just screen-shotting your terminal window and making PNGs or GIFs for stuff like this?
I've done it manually in HTML/CSS for documentation, to preserve copy-pasteability. It's straightforward: body bgcolor, and font-family (something fixed width), then a bunch of spans with colors for syntax highlighting.
Would love to find something automatic though! E.g.:
command | ttyansi2htmlcss | pbcopy
- JdeBP 3y agoWell there's http://www.andre-simon.de/doku/ansifilter/en/ansifilter.php http://www.andre-simon.de/doku/ansifilter/en/ansifilter.php for the latter. But it doesn't do direct screenshots. So one would have to find something else that would take the terminal emulator's display grid and, ironically, turn it back into a sequence of characters, escapes, and control sequences.
- quesera 3y agoScreenshotting would be cool, but this pipeable tool looks like it would be a great help. Dependency on Qt is a awkward though. Thanks for the link!