Path: utzoo!attcan!uunet!husc6!bloom-beacon!WHARTON.UPENN.EDU!JONES From: JONES@WHARTON.UPENN.EDU Newsgroups: comp.windows.x Subject: Question on XtAddInput Message-ID: <8902211446.AA26070@remote.dccs.upenn.edu> Date: 21 Feb 89 14:44:00 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 39 The documentation that I have concerning XtAddInput is not particularly clear. XtInputId XtAddInput (source,condition,proc,client_data) int source; caddr_t condition; XtInputCallbackProc proc; caddr_t client_data; What is the condition? My documentation says "Specifies the mask that indicates either a read, write, or exception condition or an operating system dependent condition" Does this mean that it can be of type XEventMask (e.g., KeyPressMask)? Secondly, can the source be of type FILE, e.g., stdin? If not, what is passed. My documentation says that source "specifies the source file descriptor on a dependent-device specification?" Thirdly, is there some example code that demonstrates the use of XtAddInput? Finally, once one sets up put handler correctly, if one calls XtNextEvent, when an input event occurs, what type of event does XtNextEvent return? I am interested in this because I need to interleave standard input from the terminal (via xterm) with some widget events. I'm running X11 R2 on an IBM RT running AIX version 2.2.1. Thanks. Chris Jones The Wharton School The University of Pennsylvania Philadelphia, PA 19104 215-898-7290 JONES@WHARTON.UPENN.EDU