Closed thomasballinger closed 3 years ago
Nevermind, this was just me not understanding how this script worked.
Reopened, added Cbreak() and it's still there.
I bet this is it:
Changed in version 3.5: The function is now retried with a recomputed timeout when interrupted by a signal, except if the signal handler raises an exception (see PEP 475 for the rationale), instead of raising InterruptedError. https://docs.python.org/3/library/select.html#select.select
https://www.python.org/dev/peps/pep-0475/ describes the change.
Yep! Fixed by https://github.com/bpython/curtsies/pull/166
This is a big behavior change (back to how it is documented + used to work)! It seems just better, so I'm ok with possibly breaking consumers.
pressing a, ctrl-c, b, ctrl-c, c, ctrl-d produces
so these sigints are waiting for the next key event.