Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!newstop!sun!pepper!cmcmanis From: cmcmanis%pepper@Sun.COM (Chuck McManis) Newsgroups: comp.sys.amiga Subject: Re: How to find CLI window pointer Message-ID: <117015@sun.Eng.Sun.COM> Date: 21 Jul 89 18:13:02 GMT References: <1914@leah.Albany.Edu> Sender: news@sun.Eng.Sun.COM Reply-To: cmcmanis@sun.UUCP (Chuck McManis) Organization: Sun Microsystems, Mountain View Lines: 26 In article <1914@leah.Albany.Edu> (William F. Hammond) writes: ->Elementary question: ->Suppose that my program has found that it is running in a CLI. How can ->it find a pointer to the WINDOW of that CLI? I know how to find the ->"CON:" process, but I can't find the window. I might be able to settle ->for the RastPort (i.e., ...->RPort ). You have to send the console handler (CON:) a packet that asks for the window stuff. There is a program by Carolyn S. of CATS called ConsPackets.c which gives an excellent example of this. It is on a fish disk as well. ->It seems to be the case that posting text to a window via the console ->device does NOT update the RastPort's drawing pen location. Is this ->correct? Yes, but don't count on it. The Console.device makes a snapshot of the window RastPort (don't ask me why) whenever it is reset, that pen location changes in the snapshot, you can draw to your hearts content in the Window's RPort without affecting the console text. With 1.4 this will probably change somewhat since the console device is getting rewhacked but don't ask me how. --Chuck McManis uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com These opinions are my own and no one elses, but you knew that didn't you. "A most excellent barbarian ... Genghis Kahn!"