Allow sending more than a screenful of output from a kitten

Also Fixes #4866
This commit is contained in:
Kovid Goyal
2022-03-23 14:33:53 +05:30
parent 49c335972f
commit 1be1864657
6 changed files with 16 additions and 24 deletions

View File

@@ -936,6 +936,10 @@ class Window:
for line in get_ssh_data(msg, f'{os.getpid()}-{self.id}'):
self.write_to_child(line)
def handle_kitten_result(self, msg: str) -> None:
import base64
self.kitten_result: Dict[str, Any] = json.loads(base64.b85decode(msg))
def handle_remote_askpass(self, msg: str) -> None:
from .shm import SharedMemory
with SharedMemory(name=msg, readonly=True) as shm: