Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: kbhit()

From: g:santilli:tiscalinet:it at: 24-Jun-2001 12:22

Hello Anton! 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... Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/