Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: `reset-prompt` multiple times cause multiline PROMPT redraw in the wrong place



On 1 Dec 2017 at 11:04:30, Pika Mao (leomaoyw@xxxxxxxxx) wrote:
> Hello,
> 
> If I add a vim mode indicator to a multiline PROMPT, then the sequence
> `^[i` (alt-i) will cause the prompt redraw in the wrong place.
> 
> The problem seems to be that `reset-prompt` is called multiple times in one
> execution cycle.

I might have something related:

myfun() { sched -o +1 myfun; }
sched -o +1 myfun

It uses "-o" option that should help outputting to terminal. However the unexpected effect in this example is that new prompt is shown each execution (each second in this case).

-- 
Sebastian Gniazdowski
psprint /at/ zdharma.org



Messages sorted by: Reverse Date, Date, Thread, Author