Article View: gnu.epoch.misc
Article #2126Re: Help with keymaps
From: Alan M. Carroll
Date: Mon, 08 Apr 1991 19:13
Date: Mon, 08 Apr 1991 19:13
28 lines
2071 bytes
2071 bytes
In article <m0jPbXT-0000VzC@p1so.uucp>, daemon@tut.cis.ohio-state.edu (Admin) writes: > My friends, > > Below I have a lisp routine to set the xterm function keys (running > on a ISC 2.2 system with the MetroLink X11R4 release) which ignores > the definitions in the second group of define-keys (Insert, Home, etc). > [ ... ] > (define-key xterm-esc-b-map "2~" 'yank) ; Insert > (define-key xterm-esc-b-map "8" 'beginning-of-buffer) ; Home > (define-key xterm-esc-b-map "5~" 'scroll-down) ; Page Up > (define-key xterm-esc-b-map "9" 'end-of-buffer) ; End > (define-key xterm-esc-b-map "6~" 'scroll-up) ; Page Down We have an ISC 2.0.2 system here, and I played around with this a bit. It appears that the keys you are having problems with don't generate strings in an xterm or under Epoch. What you probably want to do is use (rebind-key) to set those keys to generate the appropriate sequences, e.g. (rebind-key "Insert" 0 "\C-[[2~") P.S. It seems strange to me that some of the problem keys have a trailing ~ and others do not. Is this deliberate? -- Alan M. Carroll <-- Another victim of applied metaphysics Epoch Development Team Urbana Il. "I hate shopping with the reality-impaired" - Susan
Technical Details
Message-ID:
<1991Apr8.191330.8719@m.cs.uiuc.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!lll-winken!elroy.jpl.nasa.gov!usc!wuarchive!m.cs.uiuc.edu!uiucdcs!carrollReferences:
<m0jPbXT-0000VzC@p1so.uucp>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc7ee,bf0a7c1bbd34ebdb X-Google-Attributes: gidfc7ee,public X-Google-ArrivalTime: 1991-04-08 14:42:27 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!fauern!ira.uka.de!sol.ctr.columbia.edu!lll-winken!elroy.jpl.nasa.gov!usc!wuarchive!m.cs.uiuc.edu!uiucdcs!carroll From: carroll@cs.uiuc.edu (Alan M. Carroll) Newsgroups: gnu.epoch.misc Subject: Re: Help with keymaps Message-ID: <1991Apr8.191330.8719@m.cs.uiuc.edu> Date: 8 Apr 91 19:13:30 GMT References: <m0jPbXT-0000VzC@p1so.uucp> Sender: news@m.cs.uiuc.edu (News Database (admin-Mike Schwager)) Reply-To: carroll@cs.uiuc.edu (Alan M. Carroll) Distribution: gnu Organization: Technophiles Inc. - Engineers with Attitude Lines: 28 Nntp-Posting-Host: ash.cs.uiuc.edu