QuickEdit is a feature of Windows (pre-2022) that's probably driven you mad.
Any time you click within a console window, your program will halt all execution from its next attempt to write to the console.
Why?!?
It's difficult to highlight text in a fast-moving console window. QuickEdit makes it easy by momentarily preventing output.
BUT, if you're executing a long-running program, an accidental click will find you returning to your computer hours later to find that nothing has been running.
Remember to switch it off.