From 6057c57ea44ecdbe028644f19d321b3d9778ea6e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 15 Mar 2022 11:57:28 +0530 Subject: [PATCH] Fix garbage removal pafter SSH failure not working on macOS when run more than once --- kittens/ssh/main.py | 1 - 1 file changed, 1 deletion(-) diff --git a/kittens/ssh/main.py b/kittens/ssh/main.py index b51676947..ae9dedaec 100644 --- a/kittens/ssh/main.py +++ b/kittens/ssh/main.py @@ -516,7 +516,6 @@ def drain_potential_tty_garbage(p: 'subprocess.Popen[bytes]', data_request: str) # discard queued input data on tty in case data transmission was # interrupted due to SSH failure, avoids spewing garbage to # screen - termios.tcflush(tty.fileno(), termios.TCIFLUSH) data = b'' give_up_at = time.monotonic() + 1 tty_fd = tty.fileno()