summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c80855b)
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.
ControlCode('cursor normal visibility', 'cnorm', term=self._term),
# Funky stuff
ControlCode('horizontal tab', 'ht', term=self._term),
ControlCode('cursor normal visibility', 'cnorm', term=self._term),
# Funky stuff
ControlCode('horizontal tab', 'ht', term=self._term),
+ ControlCode('set tab', 'hts', term=self._term),
+ ControlCode('clear all tabs', 'tbc', term=self._term),
+ ControlCode('reset 3', 'rs3', term=self._term),
+ ControlCode('reset 2', 'rs2', term=self._term),
+ ControlCode('reset 1', 'rs1', term=self._term),
ControlCode('insert line', 'il1', term=self._term),
ControlCode('insert line', 'il', term=self._term),
ControlCode('insert line', 'il1', term=self._term),
ControlCode('insert line', 'il', term=self._term),
+ ControlCode('insert character', 'ich'),
ControlCode('erase characters', 'ech', term=self._term),
ControlCode('operating system command',
regexp=_re.compile(b'\x1b]'), term=self._term), # [1]
ControlCode('erase characters', 'ech', term=self._term),
ControlCode('operating system command',
regexp=_re.compile(b'\x1b]'), term=self._term), # [1]