🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.emacs
Article #3673

Re: Passing ^S, was "What's wrong with flow control?"

#3673
From: John Robinson
Date: Wed, 03 Dec 1986 14:30
30 lines
2125 bytes
>> If so, it downloads
>> escape sequences that do all sorts of magic, in particular they
>> remap CTRL-S to transmit ^].  Then, I fix the
>> keyboard-translate-table (my .emacs asks for confirmation) so that
>> ^] will be seen by the rest of Emacs as ^S.  In this way, I don't
>> have to change any keybindings (whether keymaps or not) nor I have
>> to reprogram myself to type strange things in different terminals.
>> The cost is the loss of ^] (big deal) and the need to confirm things
>> to my .login and my .emacs.

This works fine if the number of characters to avoid is small.
Ultimately, however, your character set shrinks so that some control
key you are fond of using has to become unavailable.

Robert Wells' suggestion to use multi-character substitutions would
solve this, but for the purposes of isearch and friends, you would
want the inversion to happen through the keyboard translate table,
which currently is just a one-for-one character substitution.  Has
anyone tried to make this a general keymap (I know there's a
performance hit here probably)?

Really you want the translation to happen in Unix's terminal driver,
of course.  Here we are really talking about a protocol between the
two ends of the terminal "line" (including port selectors, "clever"
modems and whatever).  The proper place for the support of this is at
the process serving that line.  So this suggests the need for a better
"line discipline" variant that supports the keyboard remapping.  With
this, emacs need never know.

/jr
Technical Details
Message-ID: <8612031453.AA07081@ucbvax.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!cc5.bbn.com!jr
References: <22827@rochester.ARPA>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!cc5.bbn.com!jr
From: jr@cc5.bbn.com (John Robinson)
Newsgroups: comp.emacs
Subject: Re: Passing ^S, was "What's wrong with flow control?"
Message-ID: <8612031453.AA07081@ucbvax.Berkeley.EDU>
Date: Wed, 3-Dec-86 09:30:02 EST
Article-I.D.: ucbvax.8612031453.AA07081
Posted: Wed Dec  3 09:30:02 1986
Date-Received: Wed, 3-Dec-86 21:46:18 EST
References: <22827@rochester.ARPA>
Sender: daemon@ucbvax.BERKELEY.EDU
Organization: The ARPA Internet
Lines: 30