No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help
View Responses


Grex Info Item 36: Jove
Entered by cwb on Sun Apr 25 23:47:25 UTC 1993:

     Ok, I'm finally going to take the time to learn Jove.  I've gone
through the tutorial, and I have a couple of questions.
1.  How can I create new key-bindings for the cursor movement keys so I
can use my arrow keys.  I have a working vt100 emulation sufficient to
make my arrow keys work in Pico.
2.  How can I create a set of default settings such as autofill mode on
and right margin 65 etc?

6 responses total.



#1 of 6 by srw on Mon Apr 26 06:35:23 1993:

I can take on part of #2, Chris. You create a file named .joverc and place
jove commands into it. these are executed at startup. Mine currently has 3
lines:

auto-fill-mode
auto-indent-mode
set case-ignore-search on

I can set the right margin at 65 manually by going to col 65 and typing
ESC-X rig<tab> (the tab completes the command right-margin-here)
then type <cr>
There has to be an easier way, but I never bothered to find it.

I don't think I have a good answer for your key-bindings question.
I configured by vt100 emulator to send ^B ^F ^P ^N for the arrow keys,
so jove is happy without further fuss.


#2 of 6 by remmers on Mon Apr 26 13:22:04 1993:

Redefining what the keys send is one approach, but isn't necessary.
You can bind cursor movement commands to arrow keys by using the
"bind-to-key" command in your .joverc file.  For a vt100 emulator,
the following should make the arrow keys work:

        bind-to-key previous-line <ESC>OA
        bind-to-key next-line <ESC>OB
        bind-to-key forward-char <ESC>OC
        bind-to-key backward-char <ESC>OD

Where it says <ESC> in the above, you need to put a real ascii
escape character (control-left-bracket) in the file.

I've set up my .joverc so that the numeric keypad on my keyboard
works the way it does on most PC editors -- the "home" key
(keypad 7) goes to the beginning of a line, "end" (keypad 1)
goes to the end of a line, "ins" (keypad 0) toggles overstrike
mode, and so on.  See ~remmers/.joverc for details.  For these
definitions to work, you need to be emulating a VT100-, VT200-,
or VT300-series terminal.


#3 of 6 by srw on Mon Apr 26 14:18:59 1993:

That's better than my answer, although both are effective.


#4 of 6 by power on Tue Apr 27 00:51:54 1993:

  Take a look at /u/power/.joverc - jmd gave it to me, and I modified it
for my own purposes... it'
s got pretty much everything you could want, I think... there's also
a list of the bind-to-keys, somewhere - look in the man pages...


#5 of 6 by cwb on Fri Apr 30 17:58:32 1993:

     Ok, here's my newest Jove question.  I have the
auto-fill-mode and set right-margin 65 lines in my .joverc
now.  When I invoke jove with no file argument, these options
are in effect.  However, whenever Jove has a file name as a
command-line argument, these settings are ignored.  What is
happening here?


#6 of 6 by remmers on Mon May 3 21:41:18 1993:

Well, after doing some digging, I think the situation is this:  The
"auto-fill-mode" command is buffer-specific; setting it in one buffer
doesn't affect other buffers.  When you put it in your .joverc, it
applies only to the buffer named "Main" that's displayed when you
invoke jove with no file arguments.  Opening a file causes a new
buffer to be created to display the file, and auto-fill isn't on in
that buffer.

To get the effect you want, you need to have the "auto-fill-mode"
command executed every time you create a buffer.  This is what the
"auto-execute-command" command appears to be for.  Try this in your
.joverc:
                auto-execute-command auto-fill-mode .*

The last argument ".*" is a regular expression that matches any
string; therefore, auto-fill-mode will be executed whenever you
create a buffer with any name whatsoever.

Hope all that made sense.

Response not possible - You must register and login before posting.

No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help

- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss