mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 06:25:13 +02:00
Use a record separator to delimit the start of data
Needed because the user could press keys and send data to the tty before kitty can send the ssh data
This commit is contained in:
@@ -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)}:".encode('ascii')
|
||||
yield f"\036{len(encoded_data)}:".encode('ascii')
|
||||
yield encoded_data
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user