Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!seismo!uunet!munnari!vuwcomp!cantuar!james
From: james@cantuar.UUCP (J. Collier)
Newsgroups: comp.sources.d,comp.emacs
Subject: Re: termcap, flow control, emacs
Message-ID: <134@cantuar.UUCP>
Date: Wed, 1-Jul-87 22:47:31 EDT
Article-I.D.: cantuar.134
Posted: Wed Jul  1 22:47:31 1987
Date-Received: Tue, 7-Jul-87 06:28:24 EDT
References: <1149@carthage.swatsun.UUCP> <8601@tekecs.TEK.COM>
Reply-To: james@cantuar.UUCP (J. Collier)
Organization: University of Canterbury, Christchurch, New Zealand
Lines: 30
Keywords: termcap, curses
Xref: mnetor comp.sources.d:948 comp.emacs:1335


    Some terminal emulators automatically send Xoff/Xon pairs when local
actions - such as a menu seletion to re-define mouse-click interpretation -
are invoked. 
    This is clearly undesirable in emacs, but may be necessary elsewhere. 
If the terminal/emulator has a flow control disabling sequence, GNU-emacs users
may find the following ".emacs" entries of use:

(send-string-to-terminal "")
(defun t925-suspend nil
         (interactive)
         (send-string-to-terminal "")
         (suspend-emacs)
         (send-string-to-terminal "") )
(defun t925-kill nil
         (interactive)
         (send-string-to-terminal "") 
         (save-buffers-kill-emacs) )
(global-set-key "\C-x\C-z" 't925-suspend) 
(global-set-key "\C-x\C-c" 't925-kill)
 
  [No flames if there's an easier way, please; I am not a regular emacs user]

BTW is it my imagination, or does GNU-emacs (v17.64) not know the difference
between the "in" and "im" insert-mode styles for 4.3BSD termcap? Having gone
to some trouble to add "im" to my pet terminal emulator, I now find I must
disable the termcap entry for emacs's pleasure. What gives?
-------------------------
James Collier  (james@cantuar.uucp / {watmath,munnari,mcvax}!cantuar!james
Computer Science Dept., University of Canterbury, Christchurch, New Zealand.