Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!necntc!linus!raybed2!applicon!bambi!garrity!garrity From: garrity@garrity.applicon.UUCP Newsgroups: comp.windows.x Subject: X input & select Message-ID: <45000002@garrity> Date: Thu, 28-May-87 11:20:00 EDT Article-I.D.: garrity.45000002 Posted: Thu May 28 11:20:00 1987 Date-Received: Tue, 2-Jun-87 01:21:52 EDT Lines: 37 Nf-ID: #N:garrity:45000002:000:1187 Nf-From: garrity.applicon.UUCP!garrity May 28 11:20:00 1987 Is there any "correct" way to use select on X's input queue. The only way of obtaining input which I see documented is to call XNextEvent. Down in the bowels, this calls read on the display's fd. I have an application which would like to sleep until there is input, OR another unrelated device is available for write. In other words, I would like to do this. done = 0; while( !done ) { read_mask = 1<fd; write_mask = 1<fd ) done = process_input(); else done = process_output(); } Does anyone have any ideas? I can obviously hack something up, but it would be awfully nice if it was somewhere in the neighborhood of "standard X". -- -- Mike Garrity -- -- Asking is just polite demanding. -- Max Headroom -- -- snail: Applicon, a division of Schlumberger Systems, Inc. -- 829 Middlesex Tpk. -- P.O. box 7004 -- Billerica MA, 01821 -- -- uucp: {allegra|decvax|mit-eddie|utzoo}!linus!raybed2!applicon!garrity -- {amd|bbncca|cbosgd|wjh12|ihnp4|yale}!ima!applicon!garrity