JOVE - How do you keymap VT100 arrow keys?
I found the answer in a 1991 comp.editors Google Group or rather 3 answers courtesy of Alan Coopersmith (Open Computing Facility, Berkley) quote...
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 ^[[D2. 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 ^[[D3. Stay with version 4.9 and use:bind-to-key ansi-codes ^[[
bind-to-key ansi-codes ^[OI 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).
I used solution 3. and that worked just fine.
No comments:
Post a Comment