"Anton Ertl" <[EMAIL PROTECTED]> writes:
> Robert Epprecht wrote:
>> I open /dev/midi with OPEN-FILE and can send and get MIDI input with
>> WRITE-FILE and READ-FILE.
>>
>> Now I need a word to ckeck for midi input without blocking the program
>> flow (READ-FILE waits until the MIDI message arrives).
> You could also try to use
>
> key?-file ( wfileid -- n ) gforth key_q_file
>
> and
>
> key-file ( wfileid -- n ) gforth paren_key_file
>
> to do it character-by-character
Thanks a lot.
key?-file ( wfileid -- flag ) was the word I'm looking for (cvs gforth version)
No need for O_NONBLOCK, I just use OPEN-FILE.
BTW: The cvs gforth version compiles fine now on Debin/Sarge (as long as I do
*not* use --enable-force-reg).
Robert Epprecht
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]