From 576e87efb97d8c8a00d16e53b959834dfb82a26e Mon Sep 17 00:00:00 2001 From: Miguel Angel Garcia Date: Tue, 9 Mar 2021 08:14:24 +0100 Subject: [PATCH] Reverting setcbreak to setraw --- readchar/readchar_linux.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readchar/readchar_linux.py b/readchar/readchar_linux.py index 95143ee..6bcb4e2 100644 --- a/readchar/readchar_linux.py +++ b/readchar/readchar_linux.py @@ -11,7 +11,7 @@ def readchar(): fd = sys.stdin.fileno() old_settings = termios.tcgetattr(fd) try: - tty.setcbreak(sys.stdin.fileno()) + tty.setraw(sys.stdin.fileno()) ch = sys.stdin.read(1) finally: termios.tcsetattr(fd, termios.TCSADRAIN, old_settings)