script-publish.py: Add more control codes (reset1, reset2, ...)
authorW. Trevor King <wking@tremily.us>
Sun, 13 Jan 2013 14:34:24 +0000 (09:34 -0500)
committerW. Trevor King <wking@tremily.us>
Sun, 13 Jan 2013 14:34:24 +0000 (09:34 -0500)
commite6770b308c9fea0c0916669c312f9f0c90eed460
tree50eff20abefe807426ee9f23faa37bf45d5e6d92
parentc80855be158800ae66841b267c991483dc160e45
script-publish.py: Add more control codes (reset1, reset2, ...)

These new codes were from a typescript where I had used the `reset`
command.  Xterm doesn't support rs3, but I thought I'd add it for
completeness.

The reset commands are listed in order of decreasing complication
(rs3, rs2, rs1), so that if rs1 is a subset of rs2, we don't match
part of an rs2 entry with our rs1 regexp and leave the rest unmatched.
Ideally, we'll only match the low level escape codes, and compound
escapes like rs2 will be handled automatically by taking care of their
constituent parts.  Until we get to that point, we'll need to be
careful about the order of ControlCodes.
posts/script/script-publish.py