On Tue, Apr 2, 2019 at 11:32 AM Klemens Nanni <k...@openbsd.org> wrote:
> On Tue, Apr 02, 2019 at 05:20:19PM +0200, Theo Buehler wrote:
> > Yes, ^L is printed in vi insert mode. The text you quoted is about vi
> > command mode which does indeed redraw the current line on ^L. I agree
> > with jca, no need for a change there.
> I'm confused.  Without jca's diff, I did the following:
>
>         xterm -e /bin/sh
>         $ set -o vi
>         $ ^L^L          # literal escape, nothing happens
>
>         $ set -o emacs
>         $ true^L        # redraws the line
>         $ true
>
> So where does ^L redraw the current line on ^L for you?

$ set -o vi
$ true^[^L #redraws the line
$ true

vi uses the escape or ^[ character to go into command mode from insert mode

Reply via email to