Add an option to disable OSC 8

This commit is contained in:
Kovid Goyal
2020-09-03 21:55:02 +05:30
parent 9293d9b0ed
commit 399a1f8fee
6 changed files with 24 additions and 7 deletions

View File

@@ -40,11 +40,15 @@ class Callbacks:
def desktop_notify(self, osc_code: int, raw_data: str) -> None:
self.notifications.append((osc_code, raw_data))
def open_url(self, url: str, hyperlink_id: int) -> None:
self.open_urls.append((url, hyperlink_id))
def clear(self):
self.wtcbuf = b''
self.iconbuf = self.titlebuf = self.colorbuf = self.ctbuf = ''
self.iutf8 = True
self.notifications = []
self.open_urls = []
def filled_line_buf(ynum=5, xnum=5, cursor=Cursor()):