[REBOL] Re: kbhit()
From: holger:rebol at: 22-Jun-2001 11:57
On Fri, Jun 22, 2001 at 11:41:23AM -0700, Jeff Kreis wrote:
> > con: open/direct/binary [scheme: 'console]
> > until [wait .02 input?] choice: pick con 1
>
> oops..
>
> choice: to-char pick con 1
>
> (the wait .02 prevents busy looping -- and keeps your view
> events working *TRANSPARENTLY*!!! (-: )
Why not
con: open/direct/binary/no-wait console://
until [wait con]
choice: to-char pick con 1
No crazy poll loops needed :-).
--
Holger Kruse
[holger--rebol--com]