From a0e8173fb8ec79b3eb293c44bb89a44e11b41c8f Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Mon, 3 Jan 2022 23:28:10 +1000 Subject: [PATCH] fill3: Stop ctrl-s from freezing eris. --- fill3/fill3/terminal.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fill3/fill3/terminal.py b/fill3/fill3/terminal.py index f2c52e5..fbe9086 100644 --- a/fill3/fill3/terminal.py +++ b/fill3/fill3/terminal.py @@ -70,6 +70,7 @@ def alternate_buffer(): def interactive(): old_termios_settings = termios.tcgetattr(sys.stdin) new_settings = termios.tcgetattr(sys.stdin) + new_settings[0] = new_settings[0] & ~termios.IXON new_settings[3] = new_settings[3] & ~termios.ECHO & ~termios.ICANON new_settings[6][termios.VMIN] = 0 termios.tcsetattr(sys.stdin, termios.TCSADRAIN, new_settings)