We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7842266 commit 576e87eCopy full SHA for 576e87e
readchar/readchar_linux.py
@@ -11,7 +11,7 @@ def readchar():
11
fd = sys.stdin.fileno()
12
old_settings = termios.tcgetattr(fd)
13
try:
14
- tty.setcbreak(sys.stdin.fileno())
+ tty.setraw(sys.stdin.fileno())
15
ch = sys.stdin.read(1)
16
finally:
17
termios.tcsetattr(fd, termios.TCSADRAIN, old_settings)
0 commit comments