Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Push any botton to continue help?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
AndyHuang13




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
freshHeir




PostPosted: 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: