🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #1633

Re: Rebinding Arrow Keys

#1633
From: Piet van Oostrum
Date: Thu, 27 Apr 1989 08:45
26 lines
1663 bytes
In article <CLAMEN.89Apr25184123@CLAMEN.AVALON.CS.CMU.EDU>, clamen@CLAMEN (Stewart Clamen) writes:
 `
 `One of my users has rebound ^F, but wants the rightarrow key to still
 `map to 'forward-char.  Problem is, the GNU Emacs/X interface
 `translates the arrow keys DIRECTLY into ^F/^B/^P/^N.  Here's the code,
 `from internal_socket_read() in src/x11term.c .
 `
 `-----
 `      if (IsFunctionKey(keysym) ||
 `	  IsMiscFunctionKey(keysym)) {
 `	strcpy(mapping_buf,"[");
 `	strcat(mapping_buf,stringFuncVal(keysym));
 `#ifdef sun
 `	strcat(mapping_buf,"z");
 `#else
 `	strcat(mapping_buf,"~");
 `#endif /* sun */

Another problem that I have with this code is that it binds the function
keys to "^[[..." which is difficult to use as "^[[" is not a prefix.

Also some other keys cannot be used, they are simply thrown away.
-- 
Piet van Oostrum, Dept of Computer Science, University of Utrecht
Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands
Telephone: +31-30-531806. piet@cs.ruu.nl (mcvax!hp4nl!ruuinf!piet)
Technical Details
Message-ID: <1296@ruuinf.cs.ruu.nl>
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!indri!lll-winken!uunet!mcvax!hp4nl!ruuinf!piet
References: <CLAMEN.89Apr25184123@CLAMEN.AVALON.CS.CMU.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!indri!lll-winken!uunet!mcvax!hp4nl!ruuinf!piet
From: piet@cs.ruu.nl (Piet van Oostrum)
Newsgroups: gnu.emacs.bug
Subject: Re: Rebinding Arrow Keys
Message-ID: <1296@ruuinf.cs.ruu.nl>
Date: 27 Apr 89 08:45:27 GMT
References: <CLAMEN.89Apr25184123@CLAMEN.AVALON.CS.CMU.EDU>
Sender: piet@ruuinf.cs.ruu.nl
Reply-To: piet@cs.ruu.nl (Piet van Oostrum)
Distribution: gnu
Organization: Dept of Computer Science, University of Utrecht, Holland
Lines: 26
In-reply-to: clamen@CLAMEN.AVALON.CS.CMU.EDU (Stewart Clamen)