Start work on new file_transmission protocol

This commit is contained in:
Kovid Goyal
2021-08-19 09:23:01 +05:30
parent 34ec3eac44
commit 37735b962e
5 changed files with 61 additions and 0 deletions

View File

@@ -799,6 +799,10 @@ class Window:
def send_cmd_response(self, response: Any) -> None:
self.screen.send_escape_code_to_child(DCS, '@kitty-cmd' + json.dumps(response))
def file_transmission(self, data: str) -> None:
from .file_transmission import parse_command
parse_command(data)
def clipboard_control(self, data: str, is_partial: bool = False) -> None:
where, text = data.partition(';')[::2]
if is_partial: