REBOL Technologies

Raw Console Keyboard Input

Carl Sassenrath, CTO
REBOL Technologies
23-Mar-2005 22:57 GMT

Article #0145
Main page || Index || Prior Article [0144] || Next Article [0146] || Post Comments || Send feedback

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.

Post Comments

Updated 22-Nov-2017   -   Copyright Carl Sassenrath   -   WWW.REBOL.COM   -   Edit   -   Blogger Source Code