Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!know!news.cs.indiana.edu!ux1.cso.uiuc.edu!news.iastate.edu!IASTATE.EDU!keinert From: keinert@IASTATE.EDU (Keinert Fritz) Newsgroups: comp.emacs Subject: Re: XON/XOFF problems with Emacs Keywords: xon/xoff, flow control Message-ID: <1990Dec17.075317@IASTATE.EDU> Date: 17 Dec 90 13:53:17 GMT Sender: news@news.iastate.edu (USENET News System) Reply-To: keinert@IASTATE.EDU (Keinert Fritz) Organization: Iowa State University Lines: 35 > The network I am loging on through insists on using XON/XOFF flow control. Is > there anyway for EMACS to respond to the ^S/^Q as flow control rather than > Search and Quote character? I have run into the same problem. The solution is documented in the elisp manual and is also available inside the emacs info mode. I have made up a small file called modem.el which accomplishes what you need. Just load it from the command line when you start emacs. You also need to instruct your modem driver to translate C-S to C-\ and C-Q to C-^. The elisp file instructs emacs to do the reverse mapping. --------------------------------------- (set-input-mode nil t) (setq keyboard-translate-table (make-string 128 0)) (let ((i 0)) (while (< i 128) (aset keyboard-translate-table i i) (setq i (1+ i)))) (aset keyboard-translate-table ?\034 ?\^s) (aset keyboard-translate-table ?\^s ?\034) (aset keyboard-translate-table ?\036 ?\^q) (aset keyboard-translate-table ?\^q ?\036) ----------------------------------------------------- Fritz Keinert phone: (515) 294-5128 Department of Mathematics fax: (515) 294-5454 Iowa State University e-mail: keinert@iastate.edu Ames, IA 50011