clipboard kitten: Add a --wait-for-completion option to have the kitten wait till copying to clipboard is complete

Fixes #1693
This commit is contained in:
Kovid Goyal
2019-06-07 07:13:15 +05:30
parent 5db1a07f81
commit 8ebad06e7e
4 changed files with 41 additions and 0 deletions

View File

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