From: Sebastian Gniazdowski <psprint@zdharma.org>
To: Pika Mao <leomaoyw@gmail.com>, zsh-workers@zsh.org
Subject: Re: `reset-prompt` multiple times cause multiline PROMPT redraw in the wrong place
Date: Fri, 1 Dec 2017 11:16:59 +0100 [thread overview]
Message-ID: <etPan.5a212c1b.65fd98a.c73c@zdharma.org> (raw)
In-Reply-To: <CAGAiaBEqS--hHT862J13mnq6by_+pt9iB__GwCNi9YBTBc1-bQ@mail.gmail.com>
On 1 Dec 2017 at 11:04:30, Pika Mao (leomaoyw@gmail.com) 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
prev parent reply other threads:[~2017-12-01 10:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-01 10:04 Pika Mao
2017-12-01 10:16 ` Sebastian Gniazdowski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=etPan.5a212c1b.65fd98a.c73c@zdharma.org \
--to=psprint@zdharma.org \
--cc=leomaoyw@gmail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).