I have voted to close this question as a duplicate of https://stackoverflow.com/q/13255832/773113. While waiting for it to be closed, (if it ever gets closed,) here is the answer:
bool shouldPause = (System.Console.CursorTop | System.Console.CursorLeft) == 0;
A lengthy explanation of how and why this works can be found in my answer to the original question: https://stackoverflow.com/a/79365097/773113
I have voted to close this question as a duplicate of https://stackoverflow.com/q/13255832/773113. While waiting for it to be closed, (if it ever gets closed,) here is the answer:
bool shouldPause = (System.Console.CursorTop | System.Console.CursorLeft) == 0;
A lengthy explanation of how and why this works can be found in my answer to the original question: https://stackoverflow.com/a/79365097/773113