diff --git a/confluent_client/bin/confetty b/confluent_client/bin/confetty index 2d53cdaf..0ce3cd5e 100755 --- a/confluent_client/bin/confetty +++ b/confluent_client/bin/confetty @@ -635,7 +635,7 @@ def quitconfetty(code=0, fullexit=False, fixterm=True): global didconsole if fixterm or didconsole: currfl = fcntl.fcntl(sys.stdin.fileno(), fcntl.F_GETFL) - fcntl.fcntl(sys.stdin.fileno(), fcntl.F_SETFL, currfl ^ os.O_NONBLOCK) + fcntl.fcntl(sys.stdin.fileno(), fcntl.F_SETFL, currfl & ~os.O_NONBLOCK) if oldtcattr is not None: termios.tcsetattr(sys.stdin.fileno(), termios.TCSANOW, oldtcattr) # Request default color scheme, to undo potential weirdness of terminal