home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!cs.uiuc.edu!ux1.cso.uiuc.edu!moe.ksu.ksu.edu!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!qt.cs.utexas.edu!news.Brown.EDU!noc.near.net!news.centerline.com!franl
- From: franl@centerline.com (Fran Litterio)
- Newsgroups: comp.sys.hp
- Subject: Re: HPUX 9.0 SIGWINCH on 800 series? -- was Re: hpterm resizable
- Date: 16 Nov 92 21:13:47
- Organization: CenterLine Software, Inc.
- Lines: 40
- Message-ID: <FRANL.92Nov16211347@draco.centerline.com>
- References: <BxpsyJ.18C@ux1.isu.edu> <Bxu2zv.B93@cup.hp.com>
- NNTP-Posting-Host: 140.239.3.116
- In-reply-to: wk@cup.hp.com's message of Tue, 17 Nov 1992 00:07:06 GMT
-
- wk@cup.hp.com (Wayne Krone) writes:
-
- > Daniel Simmons (simmdan@ux1.isu.edu) wrote:
- > : It is certainly true that SIGWINCH support is available on 700s with 8.07.
- > : The question I have is: will HPUX 9.0 give SIGWINCH support to the 800 series.
-
- > Extract from the s800 9.0 release notes:
-
- > * SIGWINCH and the associated "ioctl" calls (TIOCSWINSZ and
- > TIOCGWINSZ) are now supported on all HP-UX platforms. Applications
- > supporting the SIGWINCH signal are now notified when their
- > window is resized.
-
- Yes, but will applications (such as vi) at 9.0 defer to the window
- size as known by the device (accessed via ioctl) over the size as
- specified in LINES and COLUMNS when the two disagree? Try this on a
- series 700 running 8.07 (in a window where LINES and COLUMNS are set
- correctly and which has more than 5 lines):
-
- $ LINES=5 vi somefile
-
- I'm far more likely to mess up the value of an environment variable
- than I am to make a TIOCSWINSZ ioctl() call with incorrect size
- values. I'm also far more likely to run a non-HP-supplied shell that
- doesn't reset LINES and COLUMNS every time a SIGWINCH is caught.
-
- If the same data (window size) is accessible via two different
- mechanisms (environment variables and device ioctl()s), then
- applications should use the mechanism that is least under the
- influence of the user (ioctl()s). This is just standard defensive
- programming.
-
- Can anyone give an example of when an application should prefer the
- size information in environment variables to the size information
- intrinsic in the pseduo-terminal?
- --
- franl@centerline.com || Fran Litterio, CenterLine Software R&D
- 617-498-3255 || 10 Fawcett St, Cambridge, MA, USA 02138-1110
- "So what we've decided to do is set you up in Cicely, situated
- in an area that we Alaskans refer to as The Alaskan Riviera."
-