Xref: utzoo comp.emacs:7086 gnu.emacs:1821 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!samsung!ginosko!uunet!mcsun!ukc!dcl-cs!aber-cs!rupert!pcg From: pcg@rupert.cs.aber.ac.uk (Piercarlo Grandi) Newsgroups: comp.emacs,gnu.emacs Subject: How to enable flow control Summary: The *uncompiled* lines to enable ^S/^Q for flow control Message-ID: Date: 28 Oct 89 13:59:38 GMT Sender: pcg@aber-cs.UUCP Organization: Coleg Prifysgol Cymru Lines: 32 In a previous posting I gave the two commands I use to enable ^S/^Q to be used for in-band flow control, like many terminals require, and swap them around with ^\/^^, which are mostly unused on any Emacs. Unfortunately I posted a part of my *bytecompiled* $HOME/.emacs file; this means that it contained unquoted control chars, that I patched up badly. Here is the *real* source: --------------------------------------cut here-------------------------------- ;;; Flow controlled terminals ;; We want to have flow controlled terminals. ;; They use ^S-^Q, pace R. Stallman, so we must ;; redefine things: two easy pieces. ;; Redefine ^Q and ^S as ^^ and ^\ ... (and viceversa, incidentally) (setq keyboard-translate-table "\C-@\C-a\C-b\C-c\C-d\C-e\C-f\C-g\C-h\C-i\C-j\C-k\C-l\C-m\C-n\C-o\C-p\C-^\C-r\C-\\\C-t\C-u\C-v\C-w\C-x\C-y\C-z\C-[\C-s\C-]\C-q" ) ;; ... and disable interrupt input, enable cbreak and flow control (set-input-mode nil t) ------------------------------end of elisp------------------------------------- Put these lines either in your $HOME/.emacs file or in the system wide defaults.el file. -- Piercarlo "Peter" Grandi | ARPA: pcg%cs.aber.ac.uk@nsfnet-relay.ac.uk Dept of CS, UCW Aberystwyth | UUCP: ...!mcvax!ukc!aber-cs!pcg Penglais, Aberystwyth SY23 3BZ, UK | INET: pcg@cs.aber.ac.uk