🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3435

Re: JOVE (Ver. 4.9)

#3435
From: jhc
Date: Wed, 08 Mar 1989 16:28
50 lines
3465 bytes
In article <12524@vaxnix.UUCP> ron@vaxnix.UUCP (Ron Light) writes:
>In article <137@estevax_a.UUCP> lea362@estevax_a.UUCP (Hr Lea Iain ) writes:
>:
>:  I have been using and evaluating the JOVE (Ver. 4.9) editor  for
>:the last few weeks on a Xenix 386 PC and a Vax DSD4.3 and am quite
>:pleased with the product.
>:
>:  2)  On the Vax i have a Wyse wy85  terminal set to  emulate a vt100.
>:      I have  tried to  configure  the keyboard to my tastes and  have 
>:      been less than successful. I have tried to bind-to-key commands
>:      with the numeric keypad and also the four cursor keys. In respect
>:      to the cursor keys i have been able to use the Prefix-3 command
>:      in my .joverc file at startup. The problem as far as i can tell 
>:      is that the keypad and cursor keys seem to generate a 3 byte code
>:      instead of the normal 2 byte code. Has any one an idea how i can 
>:      use the keypad, cursor keys and function keys to execute commands ?
>
>Jove will *only* accept two characters for any command, (i.e. ESC letter).
>Since some terminals output "ESC [ A" for an arrow key, jove complains that
>ESC [ is not bound and then inserts the A as text.  What you'll have to do
>is to hack jove to bind ESC [ to go off to a (you build it) function that
>will get the next letter and move the cursor based on that letter.  This
>will make your version HIGHLY terminal dependent, but at least the arrow
>keys will work.  Other terminals that have a problem are ones that output
>the arrow keys as "DEL letter"

Or, you could always get version 4.12 of JOVE (cs.rochester.edu has it
available for anon ftp) which has a new set of functions that allow creation
of key-maps, which can be bound to any key.  Thus, you create a keymap, bind
it to ^[[, and then bind functions and/or macros to the characters in that
keymap; ie bind-to-key next-line ^[[B.  Remember, though, JOVE puts ansi
type terminals in application mode, so that the numeric keyboard can be used
for functions if you wish.  Versions 4.9 and earlier only supported the
arrow keys (bind-to-key ansi-codes ^[O was needed to activate this); with
user defineable keymaps.  Now, you need to bind you keymap to (for ansi
terms) ^[[ and ^[O and then bind previous-line, next-line, forward-char &
backward-char to both \^\[\[[A-D] and \^\[O[A-D] (using regular
expressions). Then bind the functions you want the numeric keypad to produce
to ^[O*, where * is the letter corresponding to that key, such as m for
ENTER.  Oh, and the functions you bind to the PF keys should also be bound
to both ^[[* and ^[O*.


-JimC
--
James H. Cloos, Jr.          "Entropy isn't what it used to be."
jhc@Crnlvax5.BITNET            --c/o Fortune @ batcomputer.UUCP
jhc@Vax5.CIT.Cornell.EDU	 #include <std_disclaimers.h>
cornell!vax1!vax5.cit.cornell.edu!jhc@rochester.UUCP
B-7 Upson Hall, Cornell Univ., Ithaca, NY 14853   +1 607 272 4519
Technical Details
Message-ID: <18112@vax5.CIT.CORNELL.EDU>
Path: arc1-ca.pugleaf.net!utzoo!yunexus!torsqnt!dptcdc!jarvis.csri.toronto.edu!mailrus!cornell!vax5!jhc
References: <137@estevax_a.UUCP> <12524@vaxnix.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!yunexus!torsqnt!dptcdc!jarvis.csri.toronto.edu!mailrus!cornell!vax5!jhc
From: jhc@vax5.CIT.CORNELL.EDU
Newsgroups: comp.editors,comp.emacs
Subject: Re: JOVE (Ver. 4.9)
Message-ID: <18112@vax5.CIT.CORNELL.EDU>
Date: 8 Mar 89 16:28:09 GMT
Article-I.D.: vax5.18112
References: <137@estevax_a.UUCP> <12524@vaxnix.UUCP>
Sender: news@vax5.CIT.CORNELL.EDU
Reply-To: jhc@vax5.cit.cornell.edu (James H. Cloos, Jr.)
Organization: Cornell Information Technologies, Ithaca, NY 14853
Lines: 50