Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: bnrmtv!thompson@ames.arc.nasa.gov (Patrick Thompson) Newsgroups: comp.sys.sun Subject: Re: Sunview question Message-ID: <8901271839.AA17534@bnrmtv> Date: 3 Feb 89 14:24:19 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 43 Approved: Sun-Spots@rice.edu Original-Date: Fri, 27 Jan 89 10:33:25 PST X-Sun-Spots-Digest: Volume 7, Issue 138, message 3 of 10 jao@megatest.uucp (John Oswalt) writes: > I would like this subwindow to be a TEXTSW, but apparently I cannot > recieve ascii events from a TEXTSW, ... You CAN receive ascii events in a TEXTSW. What you have to do is register an "interposer" function with the Notifier. This will cause all events directed towards your TEXTSW to be routed through your interposer function before going to the Base event handler. After you create your text subwindow, register your interposer function using the function "notify_interpose_event_func". For example: notify_interpose_event_func(my_textsw, My_Interposer, NOTIFY_SAFE); "My_Interposer" might look something like this: static void My_Interposer(frame, event, arg, type) Frame frame; Event *event; Notify_arg arg; Notify_event_type type; { . . . if (event_is_ascii(event)) { ch = (char) event_id(event); . . . } } - Pat Patrick Thompson UUCP: {amdahl, hplabs, ames}!bnrmtv!thompson Los Gatos, California ARPA: bnrmtv!thompson@ames.arpa Work: (415) 940-2597 "irie" Home: (408) 354-9615