Forgot the unicode version of APC and PM

This commit is contained in:
Kovid Goyal 2017-01-20 13:40:58 +05:30
parent 0612855c95
commit cc14562f2c
2 changed files with 3 additions and 1 deletions

View File

@ -151,6 +151,8 @@ handle_normal_mode_char(Screen *screen, uint32_t ch, PyObject DUMP_UNUSED *dump_
case CSI:
case OSC:
case DCS:
case APC:
case PM:
SET_STATE(ch); break;
case NUL:
case DEL:

View File

@ -167,6 +167,6 @@ class TestParser(BaseTest):
def test_oth_codes(self):
s = self.create_screen()
pb = partial(self.parse_bytes_dump, s)
for prefix in '\033_', '\033^':
for prefix in '\033_', '\033^', '\u009e', '\u009f':
for suffix in '\u009c', '\033\\':
pb('a{}+++{}bcde'.format(prefix, suffix), 'abcde')