Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!usc!rpi!uwm.edu!psuvax1!rutgers!cbmvax!darren From: darren@cbmvax.commodore.com (Darren Greenwald) Newsgroups: comp.sys.amiga.programmer Subject: Re: Console device's "Window Bounds Report" buggy? Message-ID: <22733@cbmvax.commodore.com> Date: 27 Jun 91 14:31:43 GMT References: <1991Jun26.025314.9658@crash.cts.com> Reply-To: darren@cbmvax.commodore.com (Darren Greenwald) Organization: Commodore, West Chester, PA Lines: 20 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? Hmm, I just tried this under 2.0 console.device works fine. Are you accounting for the fact that the length of the returned string is variable (e.g., a window with a capacity of 9x9 returns a shorter string than a window which is 40x40)? -------------------------------------------------------------- Darren M. Greenwald | Commodore-Amiga Software Engineering | USENET: uunet!cbmvax!darren -------------------------------------------------------------- Quote: "It would be impossible to discuss the subject without a common frame of reference." - Spock