Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!uwm.edu!csd4.csd.uwm.edu!jgreco From: jgreco@csd4.csd.uwm.edu (Joe Greco) Newsgroups: comp.sys.cbm Subject: Re: VT100 emulations and EMACS Message-ID: <634@uwm.edu> Date: 27 Oct 89 14:23:03 GMT References: Sender: news@uwm.edu Reply-To: jgreco@csd4.csd.uwm.edu (Joe Greco) Organization: Interstellar Telephone, Telegraph, and Telepath, Inc. Lines: 55 In comp.sys.cbm article , prindle@NADC.ARPA (Frank Prindle) wrote: ]Note: no C64/C128 VT100 emulation that in any way requires flow control (and ]as far as I know, they all do) to allow screen updates to keep up with the ]baud rate used (1200 and up) will work properly with EMACS *unless*: ] ]EMACS is configured to do 2 things it doesn't normally do: ] ]1) Run with host flow control enabled (for UNIX implementations ]this requires some magical incantation which puts the tty ]driver into CBREAK (vs. RAW) mode). ] ]2) Avoid the characters ^S and ^Q as editing commands (this ]requires binding these commands to some other key sequence ]and unbinding ^S and ^Q from any commands). Our school's PACX switch relies entirely on software flow control, so we have patched our default .emacs file as so to fix this: ;; replace C-s with C-\ in a much more general way so that C-\ can be typed ;; for every instance of C-s. It is at such a low level that emacs even thinks ;; that you typed a C-s. replace C-s with C-\ , globally ;; this disables any command which uses C-\ I believe there are two ;; note that position \034(octal) which is C-\ is switched with \023(octal) ;; which is C-s (setq keyboard-translate-table "\000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\023\035\036\037 !\042#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\134]^_`abcdefghijklmnopqrstuvwxyz{|}~\177") ;; change ctrl-q so it can be used as flow control ;; remap C-q tp ESC ` (global-unset-key "\C-q") (global-set-key "\e`" 'quoted-insert) (setq trim-versions-without-asking t) ;; change input mod to CBREAK mode for C-s C-q ;; emacs will never see C-s, C-q (set-input-mode nil t) ;; change help command from C-h to ESC ? ;; so we can use C-h for backspace (global-unset-key "\C-h") (global-set-key "\e?" 'help-command) ;; set backspce to delete a char same as DEL (global-set-key "\C-h" 'delete-backward-char) These changes do a little more than just ^S/^Q, but they are all useful. -- jgreco@csd4.csd.uwm.edu Joe Greco at FidoNet 1:154/200 USnail: 9905 W Montana Ave PunterNet Node 30 or 31 West Allis, WI 53227-3329 "These aren't anybody's opinions." Voice: 414/321-6184 Data: 414/321-9287 (Happy Hacker's BBS)