[REBOL] Re: kbhit()
From: g:santilli:tiscalinet:it at: 23-Jun-2001 15:47
Hello Dr.!
On 23-Giu-01, you wrote:
DT> kbhit: func [][
DT> con: open/direct/binary/no-wait console://
DT> until [wait con]
DT> choice: to-char pick con 1
DT> ]
This looks better:
>> kbhit: does [to-string read/binary/wait console://]
>> kbhit
== "x" ; pressed x
>> kbhit
== "^[[A" ; pressed up arrow
To Holger: will this have problems in the future?
Regards,
Gabriele.
--
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/