Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!oliveb!amiga!kodiak From: kodiak@amiga.UUCP (Robert R. Burns) Newsgroups: comp.sys.amiga.tech Subject: Re: RAW: windows Summary: There's an escape sequence for character bounds Keywords: RAW: window size Message-ID: <2198@amiga.UUCP> Date: 27 May 88 16:58:28 GMT References: <5997@well.UUCP> <1162@pur-phy> <3881@cbmvax.UUCP> Reply-To: kodiak@tooter.UUCP (Robert Burns) Organization: Commodore-Amiga Inc, Los Gatos CA Lines: 18 In article <3881@cbmvax.UUCP> carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) writes: >In article <1162@pur-phy> ng@newton.physics.purdue.edu.UUCP (Nicholas J. Giordano) writes: >> >>I am working on a program which opens a raw: window for input and >>output. Even though I make it a certain size when I open it, it is possible >>for the user to change the size later. How can my program determine the >>actual size? > >Check out the ConUnit stuff in this example. But if you just want to know the character bounds, write "\233 q" or "\033[ q" to the console, and read back and parse something that looks like "\2331;1;24;77 r" where the four numbers 1;1;24;77 are the row/col one-based indices of the upper right and lower left corners. Currently, the upper left is always 1;1, and the lower right varies depending on the window size (in this example 24 rows by 77 columns). - Kodiak