OpenAmiga (455/964)

From:Rudi Chiarito
Date:16 Sep 2000 at 01:36:45
Subject:Re: AMIOPEN: Keyboard polling ...or... An EWinEase request

On Fri, Sep 15, 2000 at 08:18:11PM -0400, Douglas McLaughlin wrote:
> Is there a way for a shell-based program to wait in a loop for
> keyboard events while, at the same time, wait and/or look for other
> events, i.e. socket events using select()?

Doesn't select() ("help select") work with both? I don't know, because I
never tried.

If you're doing AVE programming, you can simply call getevent() using a
timeout of -1. If, when your process becomes active again, the AVO
returned is NULL, you can check other sources of events (event flags,
variables set by signals, etc.) to find what awaked your program.



"Producing satire is kind of hopeless because of the literacy rate of
the American public." (Frank Zappa)
Rudi Chiarito SGML/XML, user interface, i18n Amiga Inc.
rudi@amiga.com http://amiga.com/
Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html