From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: Bug with the new prompt redraw code
Date: Mon, 12 Jul 2004 09:28:13 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.60.0407120920460.16720@toltec.zanshin.com> (raw)
In-Reply-To: <20040711224206.4114D865D@pwstephenson.fsnet.co.uk>
On Sun, 11 Jul 2004, Peter Stephenson wrote:
> > > > (1) zle-line-init runs before the prompt is displayed
>
> > Also it doesn't address (1) but then maybe that doesn't matter.
>
> I could be convinced it does, but see if this makes the problem go away
> first.
I can confirm that this does print the prompt that was assigned during
zle-line-init, rather than the garbage that was output before the patch.
So, what about (1)? To repeat, the intent was to display a multi-line
prompt immediately after a command finishes, but then refresh only the
last line of that prompt on subsequent zle redisplays (the original
example involved SIGWINCH handling).
An almost-equivalent thing can be achieved by using "print -P" from the
precmd function instead of by assignment to PS1, but there's a question
of whether other commands in zle-line-init should affect values that are
substituted into the prompt (e.g. $psvar).
next prev parent reply other threads:[~2004-07-12 16:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-11 3:47 Bart Schaefer
2004-07-11 13:09 ` Peter Stephenson
2004-07-11 16:44 ` Bart Schaefer
2004-07-11 22:42 ` Peter Stephenson
2004-07-12 16:28 ` Bart Schaefer [this message]
2004-07-12 17:53 ` Peter Stephenson
2004-07-13 5:08 ` Bart Schaefer
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=Pine.LNX.4.60.0407120920460.16720@toltec.zanshin.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@sunsite.dk \
/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).