Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Simulating ZLE_RPROMPT_INDENT=0
On Tue, 17 Dec 2013 22:43:37 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> I believe we concluded some years ago that it's not possible to reliably
> tell from termcap/terminfo descriptions whether this sort of trick will
> work, which is why moveto() is written the way it is. However, as we
> have now made ZLE_RPROMPT_INDENT the user's responsibility, we could
> simply assume that if ZLE_RPROMPT_INDENT=0, then printing the cub1
> sequence will do the right thing. (An extra check could be that the
> cub1 sequence is not backspace or del.)
>
> To do this would require that rprompt_off be available in moveto(), which
> likely means it needs to become global like vln and vcs. It's rather
> inefficient anyway to be looking up the value of ZLE_RPROMPT_INDENT every
> time zrefresh() is called; it ought to be handled like LINES/COLUMNS.
That sounds reasonable.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author