mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-09 13:45:26 +02:00
ssh kitten: Send data without a roundtrip
Send data to the remote side without waiting for a data request. Avoids an extra roundtrip during initialization.
This commit is contained in:
@@ -27,6 +27,7 @@ with SharedMemory(
|
||||
shm.flush()
|
||||
with open(os.ctermid(), 'wb') as f:
|
||||
f.write(f'\x1bP@kitty-ask|{shm.name}\x1b\\'.encode('ascii'))
|
||||
f.flush()
|
||||
while True:
|
||||
# TODO: Replace sleep() with a mutex and condition variable created in the shared memory
|
||||
time.sleep(0.05)
|
||||
|
||||
Reference in New Issue
Block a user