On Sat Feb 22 21:16:22 2025 +0000, Joe Souza wrote:
OK, thank you. Note that it appears that you make two conflicting statements above: "did some testing on windows which confirm that ENABLE_PROCESSED_INPUT should be kept in wait operation" and "may be setting console mode to ENABLE_PROCESSED_INPUT only is too aggressive; it looks like only clearing ENABLE_LINE_INPUT could be sufficient" The problem here is that ENABLE_PROCESSED_INPUT is not enabled by default. If I just clear ENABLE_LINE_INPUT then I don't believe that ENABLE_PROCESSED_INPUT is enabled. I will rework the code per your suggestions and I will figure out what works here.
Note also that PAUSE clears *all* flags and sets them to 0.