Get reading data working on macOS

This commit is contained in:
Kovid Goyal
2022-02-24 11:30:57 +05:30
parent 55ede897b9
commit 99d0c2d846
2 changed files with 31 additions and 13 deletions

View File

@@ -58,7 +58,7 @@ def get_ssh_data(msg: str, shell_integration_dest: str = DEFAULT_SHELL_INTEGRATI
else:
from base64 import standard_b64encode
encoded_data = standard_b64encode(data)
yield f"{len(encoded_data)}\n".encode('ascii')
yield f"{len(encoded_data)}:".encode('ascii')
yield encoded_data