Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!hc!lll-winken!uunet!imsl!dy From: dy@imsl.UUCP (Demetrios Yannakopoulos) Newsgroups: comp.sys.apollo Subject: system calls and FORTRAN Keywords: Aegis, sytem calls, more, FORTRAN Message-ID: <621@imsl.UUCP> Date: 8 May 89 16:24:20 GMT Organization: IMSL, Inc., Houston Lines: 45 I am writing an interactive application in the Aegis environment, which uses a "more"-like utility programme a lot. The height of the current window, therefore, is of major importance to the programme. The user, however, can resize the window during this interactive process. To obtain the height I use (in many appropriate spots) the following system call: pad_$inq_windows(..., wind-struct, ...) The fun starts after I issue the above call. Then the returned height which is in number of lines, is not always accurate. It can be +/- one line off (apparently, it is rounded up/down to the nearest number of full lines). Hence, the next "more" screen can one line too much or one line less! Given that during the process nobody touches the fonts, rasters, etc (which maintain their original default values - whichever may be), is there any way I can have more control over the resizing or/and the returned information? Is there a way to use the raster units information to calculate the precise number of lines? The application is using system calls, is written in FORTRAN and no C code is allowed. The window used is a read-only one, with an input pad at the bottom. During the "more" utility the input pad disappears (!) By the way, I have another qustion which is also windows-related: How many windows are actually in the default "window"? I have called the Apollo guys (...or should I say HP ???) and I have been told that there are two: the top (big) one which is usually read-only, and the bottom read-write one (usually one line plus "something" height). Are these two independent? Why the bottom one disappears during the "write"-ing of the text in the upper screen? Any advise would be appreciated very (..VERY) much. -- IMSL, Inc. Demetrios Yannakopoulos 2500 ParkWest Tower One 2500 CityWest Blvd. (713)-782-6060 x2307 Houston, TX 77042-3020 UUCP: ...!uunet!imsl!dy