Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!rutgers!cbmvax!carolyn From: carolyn@cbmvax.commodore.com (Carolyn Scheppner - CATS) Newsgroups: comp.sys.amiga.programmer Subject: Re: Console device's "Window Bounds Report" buggy? Message-ID: <22746@cbmvax.commodore.com> Date: 27 Jun 91 19:35:32 GMT References: <1991Jun26.025314.9658@crash.cts.com> Reply-To: carolyn@cbmvax.commodore.com (Carolyn Scheppner - CATS) Organization: Commodore, West Chester, PA Lines: 25 In article <1991Jun26.025314.9658@crash.cts.com> bruceg@crash.cts.com (Bruce Geerdes) writes: >I am writing an all-text program, using the console device. Whenever the >user resizes the window, I want to reformat the text. 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 -- ========================================================================== Carolyn Scheppner -- Tech. Mgr. CATS - Commodore Amiga Technical Support PHONE 215-431-9180 {uunet,rutgers}!cbmvax!carolyn carolyn@commodore.com Pad with zeros for a light, airy program. ==========================================================================