[REBOL] Re: kbhit()
From: louisaturk:eudoramail at: 22-Jun-2001 17:58
Thanks, Holger and Jeff,
This is what I wanted:
kbhit: func [
con: open/direct/binary/no-wait console://
until [wait con]
choice: to-char pick con 1
;ask "Press the lower case x key." <====<<< This won't work.
print "Press the lower case x key."
if choice = #"x" [print "It works!"]
Took me awhile to learn how to use your code. I was using ask instead of
print in the line above. :>) Stayed up too late last night!
Many thanks again for all the help. I really need this function, as I use
it often. I hate typing two key when one keystroke will do.
At 11:57 AM 6/22/2001 -0700, you wrote: