Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!rex!uflorida!aleytys!mike From: mike@aleytys.UU.NET (Michael Kent) Newsgroups: comp.windows.x Subject: Help: need to handle input-from-stdin and events simultaneously Keywords: X11R2 tookit and widgets Message-ID: <311@aleytys.UU.NET> Date: 30 Apr 89 18:34:48 GMT Distribution: usa Organization: Center for M.C.E., Gainesville, Fl Lines: 25 Can someone give me some tips... Environment: X11R2 toolkit and Athena widgets, UNIX/386 SYS5 rel. 3.2 I need to do character-by-character input from stdin while at the same time handling events. I see two ways of doing this: 1. Don't use XtMainLoop, use 'handle-a-char/XtNextEvent/XtDispatchEvent'. 2. Use XtAddInput. Which has the better efficiency? And regarding XtAddInput: the second parameter (condition) is documented as 'specifies the mask that indicates either a read, write, or exception condition or some operating system dependend condition.' Can someone translate this for me and let me know what I'm supposed to do for this parameter? -- Michael Kent INTERNET: mike@aleytys.UU.NET Center for M.C.E. UUCP: ...!{uflorida, uunet}!aleytys!mike 2521 NW 57th Pl. VOICE: +1-904-335-1573 Gainesville, Fl 32606 "These are MY opinions, get your own!"