mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-19 02:27:10 +03:00
Stub for DCS codes
This commit is contained in:
parent
4ac03a0064
commit
a120b25286
@ -486,7 +486,11 @@ HANDLER(osc) {
|
||||
|
||||
// Parse DCS {{{
|
||||
HANDLER(dcs) {
|
||||
screen->parser_state = NORMAL_STATE;
|
||||
// http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Device-Control-functions
|
||||
uint8_t ch = buf[(*pos)++];
|
||||
if (ch == ST) {
|
||||
SET_STATE(NORMAL_STATE);
|
||||
}
|
||||
}
|
||||
// }}}
|
||||
|
||||
|
@ -146,3 +146,9 @@ def test_osc_codes(self):
|
||||
c.clear()
|
||||
pb('\033]2;;;;\x07', ('set_title', 3))
|
||||
self.ae(c.titlebuf, b';;;')
|
||||
|
||||
def test_dcs_codes(self):
|
||||
s = self.create_screen()
|
||||
pb = partial(self.parse_bytes_dump, s)
|
||||
pb(b'a\033P2;xyz\x9cbcde')
|
||||
self.ae(str(s.line(0)), 'abcde')
|
||||
|
Loading…
Reference in New Issue
Block a user