Question: A basic question mostly I am not able find the answer tried searching

Inside a big running for loop 

If a particular condition is satisfied I want loop to pause until i again press the enter key again 

As if the condition is satisfied I want to note down the output results printed on screen when that condition is satisfied.

previously C I used to use like getch() for it to wait

Kind help please.

I dont want  breakpoint it will simply call the debugger so only.

Please Wait...