home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sun / admin / 4981 < prev    next >
Encoding:
Internet Message Format  |  1992-07-26  |  3.3 KB

  1. Path: sparky!uunet!ittc!fpb
  2. From: fpb@ittc.wec.com (Frank P. Bresz)
  3. Newsgroups: comp.sys.sun.admin
  4. Subject: Re: resetting pseudo-terminal sizes?
  5. Message-ID: <FPB.92Jul26140210@ittc.ittc.wec.com>
  6. Date: 26 Jul 92 18:02:10 GMT
  7. References: <1992Jul22.230123.23146@midway.uchicago.edu> <13688@auspex-gw.auspex.com>
  8. Sender: news@ittc.wec.com
  9. Organization: Westinghouse, ITTC, Pgh, PA.
  10. Lines: 64
  11. In-reply-to: valdes@geosun.uchicago.edu's message of 23 Jul 92 19:25:43 GMT
  12.  
  13. Distribution: 
  14.  
  15.  
  16. In article <1992Jul23.192543.4308@midway.uchicago.edu> valdes@geosun.uchicago.edu (John Valdes) writes:
  17.  
  18.  
  19. =>OK, I just tried to reproduce the results under OW 2.0 and 3.0, but it
  20. =>didn't show up in with either version (SunOS 4.1.1, BTW).  I guess I 
  21. =>was a bit rash including OW; I remember having the problem under Sunview,
  22. =>and I'm currently experiencing it under X (from MIT, X11R4), so I assumed
  23. =>the problem was present under OW also.
  24.  
  25. =>I have been able to reliable reproduce the results under X and Sunview,
  26. =>but only under certain circumstances.  Here's what I do:
  27.  
  28. =>1)  Start up X or sunview
  29.  
  30. =>2)  In addition to whatever xterms or cmdtools (or shelltools) opened
  31. =>    when you started X or sunview, respectively, open two more.  For
  32. =>    example, say that you started X with two xterms which use /dev/ttyp0
  33. =>    and /dev/ttyp1.  You want to open two more xterms so that they
  34. =>    use ttyp2 and ttyp3.
  35.  
  36. =>3)  Resize the first of the two windows you opened in 1) (the xterm
  37. =>    using ttyp2 in the example above).  stty -a should reflect the new size.
  38.  
  39. =>4)  Exit the window which you just resized (ttyp2)
  40.  
  41. =>5)  From any of the other windows (or from another machine), telnet
  42. =>    into the machine so that your login uses the same ttyp used by
  43. =>    the window you just resized and quit (ttyp2, in this example).
  44.  
  45. =>6)  If you now type stty -a, the number of rows and columns reported
  46. =>    will match the size of the window you had just resized and quit.
  47.  
  48. =>Observations:
  49.  
  50. =>  Assume ttyp(n) is the ttyp which has be resized for the following:
  51.  
  52. =>  -I see this behavior only if ttyp(n+1) is in use.  For example, say
  53. =>   ttyp0, ttyp1, ttyp2, ttyp3 and ttyp4 are in use.  This behavior
  54. =>   won't be seen if ttyp4 is the one resized.  It will happen if ttyp2
  55. =>   is the one resized.  ttyp(n-1) may also have to be in use, but I
  56. =>   haven't tested this in all cases.  (Hey, I've got work to do!! (-: )
  57.  
  58. =>  -It seems that this only happens with even numbered ttyp's, but again
  59. =>   I haven't tested this extensively.
  60.  
  61.     Hmm, 
  62.     I have a 4/490 running SunOS 4.1.1 which is forever getting what I
  63.     call 'whacked out ptys'.  Seems to always be even numbered ptys.
  64.     Typically 0 but sometimes 6.  Sometimes you can't even login on the
  65.     telnet port.  After entering your password it just says 'connection
  66.     closed'.  Other times the terminal is in noecho mode.  Other times
  67.     it is in the mode where you get no <CR> just linefeeds across your
  68.     page.  If anyone knows of a patch I'd really like to hear about it.
  69.  
  70.     Email please I don't get to gnus as often as I'd like.
  71. --
  72. Frank P. Bresz  |My opinions are mine, WEC pays big money for official opinions
  73. fpb@ittc.wec.com|Use Sun Type 3 keyboards, they hurt more when used as a weapon
  74. uunet!ittc!fpb  |Member: League for Programming Freedom (LPF) | STOP Software |
  75. +1 412 733 6749 |For more information on the 'LPF' send mail  |  Patents Now  |
  76.  
  77.