home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / xenix / sco / 2877 < prev    next >
Encoding:
Text File  |  1992-09-09  |  6.4 KB  |  138 lines

  1. Newsgroups: comp.unix.xenix.sco
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!decwrl!deccrl!news.crl.dec.com!rdg.dec.com!pa.dec.com!dynamix!david@uu3.psi.com
  3. From: david@dynamix.com (David L Jarvis)
  4. Subject: mscreen patch
  5. Organization:  SOFTWARE / DYNAMIX
  6. Message-ID: <9209090723.AA12954@dynamix.com>
  7. Date: Wed, 9 Sep 92 7:23:03 EDT
  8. X-Received: by usenet.pa.dec.com; id AA27294; Wed, 9 Sep 92 06:53:14 -0700
  9. X-Received: by inet-gw-2.pa.dec.com; id AA20408; Wed, 9 Sep 92 06:53:12 -0700
  10. X-Received: from dynamix.UUCP by uu3.psi.com (5.65b/4.0.071791-PSI/PSINet)id AA17947; Wed, 9 Sep 92 09:48:52 -0400
  11. X-Received: by dynamix.com (smail2.5c)id AA12958; 9 Sep 92 07:23:03 EDT (Wed)
  12. X-To: comp.unix.xenix.sco.usenet (comp.unix.xenix.sco)
  13. X-Mailer: ELM [version 2.3 PL11]
  14. Lines: 122
  15.  
  16. Below is a technical writeup for patching the mscreen binary for 2.3.4
  17. It was sent to me by Bela Lubkin of SCO Support.  I worked with Bela when
  18. 2.3.4 first came out to isolate this problem, but because I had an easy
  19. workaround (similiar to the one described in the FAQ put out by Chip) I
  20. never followed up with Bela's solution.  Recently I came to realize that I
  21. needed a better way to fix the problem, so I'm posting this technical note
  22. for any others who might be doing something similiar with mscreen.
  23. Briefly, what I do is set up "phantom" users on ports that are to have
  24. mscreens, that do nothing but execute mscreen (ie: a user named ttyi1a on
  25. port ttyi1a, using the AUTO keyword in gettydefs).  This has the effect of
  26. mscreen being active on any port *all the time* (and users not having to
  27. run it themselves).  This way a ttyi1a port looks and feels just like the
  28. console multiscreens (with a bit of other tweaking that is :-) ).
  29. The desire to use "exec mscreen -s -n 3" in the .profile for 
  30. these accounts is what lead me to find a better solution than 
  31. mine and the one in the FAQ.  If anybody would like additional information
  32. about this, please feel free to send me email.
  33.  
  34. PS:  Chip, how about putting this in the FAQ?  (since it comes direct from
  35. SCO, and not from some magazine :-) )
  36.  
  37. > =============================================================================
  38. > The display is garbled only when I run mscreen.
  39. > RELEASE:  SCO XENIX 386 Operating System Release 2.3.4
  40. >           SCO UNIX System V/386 Release 3.2 Operating System Version 2.0
  41. > PROBLEM:  mscreen(M) seems to work correctly, but the output of certain
  42. >           applications is somewhat garbled, as if the terminal is losing
  43. >           characters.
  44. > CAUSE:    The mscreen(M) program which is supplied with SCO XENIX 386
  45. >           Operating System Release 2.3.4 and with SCO UNIX System V/386
  46. >           Release 3.2 Operating System Version 2.0 identifies itself as
  47. >           "mscreen rev VIII".  This version of mscreen disables the
  48. >           "ixon" stty(C) setting of the serial port on which it is run.
  49. >           For instance, if you are logged into tty1a and run mscreen,
  50. >           tty1a is now set to "-ixon".  This prevents the terminal from
  51. >           sending XON/XOFF flow control signals to the system.  Many
  52. >           terminals cannot handle full speed input during certain
  53. >           operations (such as clearing the screen).  If they are unable
  54. >           to pause the system, they lose characters.
  55. >           mscreen does turn on the "ixon" setting of the pseudo-ttys
  56. >           that it uses.  This allows the user to pause output, but
  57. >           there is a significant amount of latency.  That is, after
  58. >           hitting <Ctrl>-S, the system may output as much as half a
  59. >           screen before stopping.
  60. >           The version of mscreen that is supplied with SCO XENIX 386
  61. >           Operating System Release 2.3.2 identifies itself as "mscreen
  62. >           rev VII".  It does not turn off "ixon".
  63. >           If "ixon" is enabled on the serial port tty, flow control
  64. >           characters are handled quickly by the serial port driver,
  65. >           allowing the terminal to modulate the flow of information.
  66. >           If it is only enabled on the pseudo-ttys, the terminal can
  67. >           still do this, but the system's response to flow control is
  68. >           slow enough that characters will be lost unless the terminal
  69. >           has a large input buffer.
  70. > SOLUTION: A workaround is to note the name of your serial tty.  After
  71. >           starting mscreen and logging in, turn "ixon" back on for that
  72. >           tty.  In the following example, the user first determines her
  73. >           serial tty name.  She then runs mscreen, logs in, and re-enables 
  74. >       "ixon" for the serial tty.
  75. >              $ tty
  76. >              /dev/tty1a
  77. >              $ mscreen -n 2
  78. >              mscreen rev VIII
  79. >              who            is Shift-F7
  80. >              help           is Shift-F8
  81. >              stop           is Shift-F9
  82. >              quit           is Shift-F10
  83. >              ttyp0          is Shift-F1
  84. >              ttyp1          is Shift-F2
  85. >              test!login: jdoe
  86. >              Password:
  87. >              $ stty ixon < /dev/tty1a
  88. >           A more permanent solution is to patch the mscreen(M) program.
  89. >           To do this, take the following steps:
  90. >              1. Make a copy of the program:
  91. >                   # copy -om /usr/bin/mscreen /usr/bin/mscreen.orig
  92. >              2. Apply the patch with /etc/_fst.  There are two patches,
  93. >                 depending on your operating system release:
  94. >                 FOR SCO XENIX 2.3.4:
  95. >                   # /etc/_fst -w /usr/bin/mscreen
  96. >                   * 3f:1233?w 400
  97. >                   0x3f:0x1233:    0x0=    0x400
  98. >                   * $q
  99. >                 FOR SCO UNIX System V Release 3.2 Version 2.0:
  100. >                   # /etc/_fst -w /usr/bin/mscreen
  101. >                   * 17:2327?w 400
  102. >                   0x17:0x2327:    0x0=    0x400
  103. >                   * $q
  104. >              3. If you believe that you have incorrectly applied the
  105. >                 patch, or if the patched version of mscreen does not 
  106. >         seem to solve the problem, you can replace it with the
  107. >                 original, unpatched version which was saved in step 1:
  108. >                   # copy -om /usr/bin/mscreen.orig /usr/bin/mscreen
  109. > SEE ALSO: mscreen(M), termio(M)
  110.  
  111. #----------------------------------------------------------------------#
  112. #          David L. Jarvis                 SOFTWARE  /                 #
  113. #          david@dynamix.com                       /  DYNAMIX          #
  114. #----------------------------------------------------------------------#
  115.