elan-language / LanguageAndIDE

Apache License 2.0
3 stars 1 forks source link

Add waitForAnyKey method #862

Closed richardpawson closed 1 week ago

richardpawson commented 2 weeks ago

Press any key to continue... is a common requirement in early programming. Currently you need to write e.g.:

let k be inputString("Press Enter to continue")

which is awkward because:

So with this method you just write e.g.

print "Press any key to continue...`
call waitForAnyKey()
richardpawson commented 2 weeks ago

Implement and working (as part, originally, of #849) - but needs tests and documentation still.