Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!cbmvax!cbmehq!cbmdeo!lenler!moria!bojsen From: bojsen@moria.UUCP (Per Bojsen) Newsgroups: comp.sys.amiga.programmer Subject: Re: Console device's "Window Bounds Report" buggy? Keywords: console.device window status report aux-handler AUX: Message-ID: <196063c7.ARN389a@moria.UUCP> Date: 29 Jun 91 14:09:59 GMT References: <1991Jun26.025314.9658@crash.cts.com> <22746@cbmvax.commodore.com> Reply-To: cbmehq!moria!bojsen Followup-To: comp.sys.amiga.programmer Organization: IDUN-Soft Aps. Lines: 39 In article <22746@cbmvax.commodore.com>, Carolyn Scheppner - CATS writes: > In article <1991Jun26.025314.9658@crash.cts.com> bruceg@crash.cts.com > (Bruce Geerdes) writes: > > > So whenever I get a > > NEWSIZE message I send a "window status request" (page 645 RKM Libraries & > > Devices 1.3) to get the current row and column capacity of the window, but > > it always returns the stats of the window's original size, not its current. > > Has anyone here gotten it to work? > > I use the ConUnit instead. In your console device IORequest structure, > after you do OpenDevice, there will be an io_Unit pointer which is > a pointer to a struct ConUnit. WARNING - ConUnit structure is > READ ONLY. Some REAL handy things to read out of the ConUnit structure > are: > > cu_XMax and cu_YMax - the max X/Y character (not pixel) positions > (ie. like 80 x 25) > cu_XCP and cu_YCP - the current cursor X/Y charactor position > On the other hand, if you're using the console.device to do a simple terminal program for use as a terminal to a remote Amiga (using the Aux-Handler), you're stuck with the window status request escape sequences, since the Aux-Handler does not emulate the ConUnit structure. For example, one version of Stevie used the ConUnit structure to get the window size, but when run via the Aux-Handler over a serial line this does not work. I had to hack Stevie to use the window status request since that would make the local console.device unit (being the terminal program window) respond with *its* window size. This works fine under 2.0. -- .------------------------------------------------------------------------------. | Greetings from Per Bojsen. | +------------------------------+-----------------------------------------------+ | EMail: cbmehq!lenler!bojsen | "Names do have power, after all, that of | | Or: bojsen@dc.dth.dk | conjuring images of places we have not seen" | `------------------------------+-----------------------------------------------'