home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / emacs / help / 3714 < prev    next >
Encoding:
Text File  |  1992-08-12  |  3.4 KB  |  69 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!pipex!demon!edscom.demon.co.uk!kevin
  3. From: kevin@edscom.demon.co.uk (Kevin Broadey)
  4. Subject: Re: C-s problems
  5. In-Reply-To: thompson@atlas.socsci.umn.edu's message of 12 Aug 92 14:16:57 GMT
  6. Message-ID: <KEVIN.92Aug13091127@buffalobill.edscom.demon.co.uk>
  7. Sender: kevin@edscom.demon.co.uk (Kevin Broadey)
  8. Organization: EDS-Scicon, Milton Keynes, UK
  9. References: <1992Aug11.200128.25622@seas.smu.edu>
  10.     <KEVIN.92Aug12100941@buffalobill.edscom.demon.co.uk>
  11.     <thompson.713629017@kiyotaki.econ.umn.edu>
  12. Distribution: gnu.emacs.help
  13. Date: Thu, 13 Aug 1992 09:11:27 GMT
  14. Lines: 53
  15.  
  16. In article <thompson.713629017@kiyotaki.econ.umn.edu> thompson@atlas.socsci.umn.edu (T. Scott Thompson) writes:
  17.  
  18.    This doesn't sound right to me.  More precisely, it is incomplete.
  19.    Your explanation essentially states that the terminal sends C-s (XOFF)
  20.    to the host when you press C-s at the keyboard.  This is undoubtably
  21.    correct, but is probably not the source of the problem.  After all,
  22.    sending out C-s is exactly what we want the terminal to do!
  23.  
  24.    I do not know the specifics of the DEC-VT220, but I suspect that the
  25.    various "XOFF" commands mentioned control how the terminal responds to
  26.    data arriving too fast from the host.  That is, when you set "XOFF at
  27.    64" this probably means "OK terminal, if your input buffer has less
  28.    than 64 free bytes you should _automatically_ send out a C-s to tell
  29.    the host to stop sending."
  30.  
  31.    But this is a digression.  The real problem is that when the host
  32.    _receives_ the C-s it is interpretting it as the message "stop sending
  33.    characters" instead of passing it along to emacs.  That is, the
  34.    flowcontrol processing _at_the_recieving_end_ prevents emacs from ever
  35.    seeing the C-s.  It also causes the host to temporarily stop echoing
  36.    characters back to the terminal, which is why your terminal _appears_
  37.    to be locked.  (It isn't really locked in all likelihood.)
  38.  
  39.    Ideally emacs will turn off XON/XOFF flowcontrol at the host
  40.    automatically when it is in command. However there are situations when
  41.    emacs cannot do the job.  For example, I usually connect to my host
  42.    through a network terminal server that does its own flowcontrol
  43.    processing.  Unless I turn that off (manually) when I make the
  44.    connection, the host never even receives the C-s, since it is
  45.    intercepted and processed by the terminal server.
  46.  
  47.    Bottom line: The problem _is_ flow control.  The solution is likely to
  48.    be more complicated than simply turning off XON/XOFF flowcontrol at
  49.    the terminal end.
  50.  
  51.  
  52. Okay, you got me!  I forgot to mention the terminal concentrator being a
  53. possible source of flow control problems.  I remember seeing that in one of the
  54. PROBLEMS files in the emacs distribution.
  55.  
  56. As to my description of how a DEC-VT220 works, this is *exactly* what happens
  57. (unless someone's rebadged the terminal I'm sitting in front of!).  If you have
  58. "XOFF at ..." set, "C-s" freezes the terminal *immediately*, and it only
  59. forwards "C-s" to the host when the specified buffer (64 or 128) fills up.
  60.  
  61. But before anyone else flings their own pet theory into the fray, perhaps we
  62. should wait for Ted Pedersen to post his equipment configuration so we can
  63. *all* make a more *informed* diagnosis.
  64. -- 
  65. Kevin Broadey, EDS-Scicon
  66. Mail:    Wavendon Tower, Wavendon, Milton Keynes, MK17 8LX, England
  67. E-mail: kbroadey@edscom.demon.co.uk
  68. Phone:    +44 908 284198 or +44 908 585858 ext 4198
  69.