Cleanup kitty dcs parsing

This commit is contained in:
Kovid Goyal
2023-11-07 16:54:17 +05:30
parent 0a6d83901d
commit 50935b6c93
6 changed files with 47 additions and 44 deletions

View File

@@ -83,6 +83,7 @@ class Callbacks:
self.wtcbuf = b''
self.iconbuf = self.colorbuf = self.ctbuf = ''
self.titlebuf = []
self.printbuf = []
self.notifications = []
self.open_urls = []
self.cc_buf = []
@@ -110,7 +111,10 @@ class Callbacks:
def handle_remote_print(self, msg):
text = process_remote_print(msg)
print(text, file=sys.__stdout__, end='', flush=True)
self.printbuf.append(text)
def handle_remote_cmd(self, msg):
pass
def handle_remote_clone(self, msg):
msg = str(msg, 'utf-8')