Steve Dower added the comment: You're right, we're missing this section of code:
if (PyOS_InputHook != NULL) (void)(PyOS_InputHook)(); Since we just call it and ignore anything it does, it should be safe enough to add it immediately before the ReadConsoleW call (inside the loop). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31546> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com