On Tue, Apr 02, 2019 at 05:31:22PM +0200, Klemens Nanni 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
You're staying in insert mode. As I said, paragraph is about command
(normal) mode:
The ⟨ESC⟩ key is used to enter command
mode, where commands similar to those used by vi(1) are available. A
Ctrl-L sequence (^L) can be used in this mode to redraw the current
command line.
$ set -o vi
enter hello<ESC>^L^L and get the following output:
$ hello
$ hello
$ hello
With each ^L you will get another line containing "$ hello".