[net.unix] arrow key/redrawing in vi

stanonik@nprdc.arpa (Don) (08/28/85)

A couple of our users recently complained that ^L didn't redraw
the screen in vi.  Sure enough, it didn't.  The problem appeared
to be that the termcaps, wy50 and tvi910, each had a right arrow
key capability of ^L and vi seems to interpret typed keys first
as arrow keys and second as vi commands.  Our solution was to
remove the right arrow key capability, but since several other
termcaps also use ^L for right arrow, we wonder if we're overlooking
some other solution (a fix? so vi interprets keys as vi commands
first?).

Thanks,

Ron Stanonik
stanonik@nprdc.arpa

klee@sri-spam (Ken Lee) (08/28/85)

You could try using another character, like control-r, for the vi
screen refresh command.

stanonik@nprdc.arpa (Ron Stanonik) (08/28/85)

My experience (or lack thereof) with ^R, is that it only
redraws to remove @ lines; ie, when the terminal is too
stupid to close up deleted lines.  Otherwise it doesn't
redraw.

Ron
stanonik@nprdc

CHERRY.PASA@Xerox.ARPA (cherry) (08/29/85)

I am using vi on a Sys 5 system and "z" will redraw the screen.  That way I keep
the right arrow on my w50 terminals.