Computer Science Canada

Push any botton to continue help?

Author:  AndyHuang13 [ Mon Nov 11, 2019 6:02 pm ]
Post subject:  Push any botton to continue help?

Hi, i am a starter to turing and is asking if there is a way to make it where the user can press a certain or any key to do a cls

Author:  freshHeir [ Wed Nov 13, 2019 8:58 am ]
Post subject:  Re: Push any botton to continue help?

It depends on how your code is running, but if, for example, you want to exit a loop when the escape key is pressed, you might do something like the following.
code:
var inputs : array char of boolean
loop
Input.KeyDown (inputs)
exit when inputs (ESC_KEY)
end loop


: