Article View: comp.editors
Article #2879Re: JOVE - How do you keymap VT100 arrow keys? (SUMMARY)
From: Alan Coopersmith
Date: Fri, 28 Jun 1991 17:56
Date: Fri, 28 Jun 1991 17:56
44 lines
2119 bytes
2119 bytes
I received requests for a summary of what I found out so here goes:
There are 3 basic solutions (all of which are commands put in your
.joverc file):
1. Upgrade to version 4.14 (I was told 4.9 really means 4.09) and use:
> make-keymap vt100-map
> bind-keymap-to-key vt100-map ^[[
> bind-to-key next-line ^[[B
> bind-to-key previous-line ^[[A
> bind-to-key forward-character ^[[C
> bind-to-key backward-character ^[[D
2. Use this (not sure which version):
bind-to-key prefix-3 ^[[
bind-to-key next-line ^[[B
bind-to-key previous-line ^[[A
bind-to-key forward-character ^[[C
bind-to-key backward-character ^[[D
3. Stay with version 4.9 and use:
bind-to-key ansi-codes ^[[
bind-to-key ansi-codes ^[O
I will use #3 since it doesn't require bothering the overworked/unpaid
OCF staff to install a new version. It is also the simplest, but only
works with vt100/ANSI term types. If you want to do assign keys on a
vt220 or a Sun or anything else that doesn't use the vt100 key codes, you
need a version past 4.9. (To find out what version you have type M-X
version).
Thanks to those who sent these solutions to me:
michaelk@copper.wr.tek.com (Michael D. Kersenbrock)
hugh@csri.toronto.edu (Hugh Redelmeier)
paulj@dike (Paul Jones)
elliss@frith.egr.msu.edu (Stew Ellis)
----------------------
Alan Coopersmith
alanc@ocf.berkeley.edu
----------------------
Technical Details
Message-ID:
<1991Jun28.175636.5529@agate.berkeley.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!agate!lightning.Berkeley.EDU!alancReferences:
<1991Jun27.212759.18519@agate.berkeley.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!agate!lightning.Berkeley.EDU!alanc From: alanc@lightning.Berkeley.EDU (Alan Coopersmith) Newsgroups: comp.editors Subject: Re: JOVE - How do you keymap VT100 arrow keys? (SUMMARY) Summary: That's what it is! Keywords: JOVE unix keymap Message-ID: <1991Jun28.175636.5529@agate.berkeley.edu> Date: 28 Jun 91 17:56:36 GMT Article-I.D.: agate.1991Jun28.175636.5529 References: <1991Jun27.212759.18519@agate.berkeley.edu> Sender: usenet@agate.berkeley.edu (USENET Administrator) Organization: UC Berkeley Open Computing Facility Lines: 44