pcg@rupert.cs.aber.ac.uk (Piercarlo Grandi) (10/28/89)
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