script-publish.py: Add my terminal-escape-to-HTML conversion script
authorW. Trevor King <wking@tremily.us>
Sun, 13 Jan 2013 01:10:51 +0000 (20:10 -0500)
committerW. Trevor King <wking@tremily.us>
Sun, 13 Jan 2013 01:47:56 +0000 (20:47 -0500)
commit4e989978a8bdf74b3ba6d768b6e46530fb17e8f8
treedaf19ae0b9c35c385550d812ca1abd0a645e1fa9
parent2bc556d54f6f36011a9348c0ef88f119fd1107a3
script-publish.py: Add my terminal-escape-to-HTML conversion script

So students can follow along (and easily archive) the instructor's
live terminal session.  I convert all the escape sequences that turned
up during some simple messing around (including opening an Emacs
window), but there are surely some escape sequences that I don't catch
yet.  Also, the HTML output doesn't understand anything about windows
or cursors, so anything inside a curses application (e.g. Emacs) will
probably come out horribly mangled.  Still, things should recover
quickly once you get back to the command line.

If you do want to record curses sessions, you'll probably want to
record scripts with timing information and play them back in an actual
terminal emulator ;).
posts/script.mdwn
posts/script/script-publish.py [new file with mode: 0755]