Skip to content

Commit

Permalink
Reverting setcbreak to setraw
Browse files Browse the repository at this point in the history
  • Loading branch information
magmax committed Mar 9, 2021
1 parent 7842266 commit 576e87e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readchar/readchar_linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 576e87e

Please sign in to comment.