Raw Console Keyboard Input
If you use a console-based version of REBOL (like REBOL/Core), how can your script be made to respond to a single key press, rather than requiring the user to press the return key each time? Many users have asked me this question over the years, and the answer is quite easy (one line), but if you google for it... well, you may not find the answer all that easily. So, hopefully, for one last time, here is how to get raw characters from the console without requiring the user to press the return key.
|
Updated 23-Nov-2024 - Copyright Carl Sassenrath - WWW.REBOL.COM - Edit - Blogger Source Code |