[REBOL] Re: kbhit()
From: g:santilli:tiscalinet:it at: 24-Jun-2001 12:22
On 23-Giu-01, you wrote:
A> It has problems now! :)
A> In latest Rebol/View 1.2.1, 'read has no refinement "/wait".
Ooops, sorry, I was playing with /Core on the Amiga and I see I
still have 2.3 here (time to upgrade, huh? :).
A> kbhit: does [to-string read/binary/part console:// 1]
I wanted to avoid /part exactly for the reason you show below.
We'll have to resort to:
kbhit: does [
con: open/binary/no-wait console://
until [wait con]
first reduce [to-string copy con close con]
which seems to work as expected.
Sorry for wasting your time with my previous post...
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/