To achieve this functionality, you can use the pause
function inside your loop and the keyboard
function to wait for user input. Here's an example:
main.m98 chars7 lines
In this example, the loop will pause at the end of each iteration, display a message, and wait for the user to press any key. Once a key is pressed, the loop will continue with the next iteration.
gistlibby LogSnag