home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / hp / 12975 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  2.4 KB

  1. 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
  2. From: franl@centerline.com (Fran Litterio)
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: HPUX 9.0 SIGWINCH on 800 series? -- was Re: hpterm resizable
  5. Date: 16 Nov 92 21:13:47
  6. Organization: CenterLine Software, Inc.
  7. Lines: 40
  8. Message-ID: <FRANL.92Nov16211347@draco.centerline.com>
  9. References: <BxpsyJ.18C@ux1.isu.edu> <Bxu2zv.B93@cup.hp.com>
  10. NNTP-Posting-Host: 140.239.3.116
  11. In-reply-to: wk@cup.hp.com's message of Tue, 17 Nov 1992 00:07:06 GMT
  12.  
  13. wk@cup.hp.com (Wayne Krone) writes:
  14.  
  15. > Daniel Simmons (simmdan@ux1.isu.edu) wrote:
  16. > : It is certainly true that SIGWINCH support is available on 700s with 8.07.
  17. > : The question I have is: will HPUX 9.0 give SIGWINCH support to the 800 series.
  18.  
  19. > Extract from the s800 9.0 release notes:
  20.  
  21. > * SIGWINCH and the associated "ioctl" calls (TIOCSWINSZ and
  22. >   TIOCGWINSZ) are now supported on all HP-UX platforms.  Applications
  23. >   supporting the SIGWINCH signal are now notified when their
  24. >   window is resized.
  25.  
  26. Yes, but will applications (such as vi) at 9.0 defer to the window
  27. size as known by the device (accessed via ioctl) over the size as
  28. specified in LINES and COLUMNS when the two disagree?  Try this on a
  29. series 700 running 8.07 (in a window where LINES and COLUMNS are set
  30. correctly and which has more than 5 lines):
  31.  
  32.     $ LINES=5 vi somefile
  33.  
  34. I'm far more likely to mess up the value of an environment variable
  35. than I am to make a TIOCSWINSZ ioctl() call with incorrect size
  36. values.  I'm also far more likely to run a non-HP-supplied shell that
  37. doesn't reset LINES and COLUMNS every time a SIGWINCH is caught.
  38.  
  39. If the same data (window size) is accessible via two different
  40. mechanisms (environment variables and device ioctl()s), then
  41. applications should use the mechanism that is least under the
  42. influence of the user (ioctl()s).  This is just standard defensive
  43. programming.
  44.  
  45. Can anyone give an example of when an application should prefer the
  46. size information in environment variables to the size information
  47. intrinsic in the pseduo-terminal?
  48. --
  49. franl@centerline.com   || Fran Litterio, CenterLine Software R&D
  50. 617-498-3255           || 10 Fawcett St, Cambridge, MA, USA 02138-1110
  51. "So what we've decided to do is set you up in Cicely, situated
  52.  in an area that we Alaskans refer to as The Alaskan Riviera."
  53.