Support for DCS status and capabilities reporting codes

This commit is contained in:
Kovid Goyal
2017-12-02 14:35:06 +05:30
parent c12bce3d2f
commit b9798c74d4
8 changed files with 197 additions and 92 deletions

View File

@@ -28,14 +28,15 @@ class Callbacks:
self.ctbuf += ''
def request_capabilities(self, q):
self.qbuf += q
from kitty.terminfo import get_capabilities
self.write(get_capabilities(q))
def use_utf8(self, on):
self.iutf8 = on
def clear(self):
self.wtcbuf = b''
self.iconbuf = self.titlebuf = self.colorbuf = self.qbuf = self.ctbuf = ''
self.iconbuf = self.titlebuf = self.colorbuf = self.ctbuf = ''
self.iutf8 = True