diff --git a/getkey/platforms.py b/getkey/platforms.py index 3bb4345..9723c25 100644 --- a/getkey/platforms.py +++ b/getkey/platforms.py @@ -113,7 +113,7 @@ def fileno(self): def context(self): fd = self.fileno() old_settings = self.termios.tcgetattr(fd) - self.tty.setcbreak(fd) + self.tty.setcbreak(fd, self.termios.TCSANOW) try: yield finally: