Add a kitten to get/set the clipboard via OSC 52

This commit is contained in:
Kovid Goyal
2018-05-21 23:24:27 +05:30
parent 3d37348c2b
commit d3edd2e73f
5 changed files with 103 additions and 1 deletions

View File

@@ -67,6 +67,9 @@ class Handler:
def on_kitty_cmd_response(self, response):
pass
def on_clipboard_response(self, text, from_primary=False):
pass
def write(self, data):
if isinstance(data, str):
data = data.encode('utf-8')