James wrote:
> -> And the `info` proggy seems to works well (like emacs info mode at least)
> -> once you learn to use it ;->...
> -
> -Except that none of the versions which I've seen recognise the cursor
> -keys.
>
> ahh, that's a thing, what're te VI keys if your arrows don't work? we've
> got these horrid little Sun Workstation 1+ efforts with no cursor pad and
> Vi is a right mess.
The vi motion keys are h,j,k,l.
> The Sun Workstation 20 or whatever they are are OK, proper keyboard
> (what's 'compose' for?
For inputting accented characters, e.g. `compose a " -> �' etc.
> and all those keys like 'help' that go down the left side?
Well, if the system is configured correctly, `help' would bring up
help in X applications.
> i pushed them all and my xterm locked up)
Maybe xterm's translations defines one of them to emit an escape
sequence which includes Ctrl-S (XOFF), and the tty driver is
configured for software (XON/XOFF) flow control. Ctrl-Q should resume
output in this case. `stty -ixon -ixoff' will disable software flow
control.
> they've got 21" (that's INCH incase i used the wrong thing) monitors
> too (so why is X only in 800X600?)
Maybe you only have enough video RAM for 800x600, or maybe that's the
highest the the video hardware will cope with at a reasonable refresh
rate.
> is there a way of making VI (this is 'real' vi, not vim or elvis etc) use the
> arrows properly?
If vi has been written to use them, then it should just require that
the termcap or terminfo entry corresponding to $TERM matches the key
sequences that the terminal emits.
> i.e like on the PC? whenever i press one in insert mode (this
> is on a Sun BTW) it does an Esc first which takes it out of insert mode. On
> the PC i can just press them and stay in insert mode.
It sounds like a termcap/terminfo problem. Press Ctrl-V followed by
one of the cursor keys to see which escape sequence it emits. Use
`echo $TERM' to see which terminal definition is used. Then check
/etc/termcap and the output of `infocmp $TERM' to see if it matches.
See the termcap and/or terminfo manpages for more details.
--
Glynn Clements <[EMAIL PROTECTED]>