Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Geoff's prompt escape sequences patch (workers/23924)
- X-seq: zsh-workers 24096
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Geoff's prompt escape sequences patch (workers/23924)
- Date: Fri, 16 Nov 2007 15:57:31 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=/pDvgfPAiYpv9XKIpHS8eat+wsO60wTrlSG53yjePcY=; b=r7EWK1bmZm8vXpr/7o7sM5qq7xwra807GQhCnzaB6bDB7JpJZo6E2rTLFsSnB4I/IgKtonbB4P3tRxXgz2gw+Ffaqc56udZx0ocUN0YWaMm6i++xjdQ2lsw9zjDUf05Ntdgv9Qq0UWdqha5Kpi36MB/ykyV0wz3fANZZFnBdtTY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qE4OqqYZmjgHdQZKvCSYo/WKUAmVS0NMV9VPHWguDyFtOVfpP1j9RuC/wg+JVh2rh0qzdoQCyh+HRHCq/awBwKKiq+C1gvxrmxEORi8Mj7fr1bvtWlRKOwi0pJrGfsapXAgJGil1hMe6h1IzEZkTeKHRQ8Pyd91QizY4rk7kvXI=
- In-reply-to: <071018065911.ZM11918@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <071018065911.ZM11918@xxxxxxxxxxxxxxxxxxxxxx>
On 18/10/2007, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> I just noticed this never got committed to CVS. I've tried it and it is
> giving 99% of the correct behavior now (well, what I think is the correct
> behavior; I never tried ending a prompt by turning ON standout, before).
>
> The only glitch I can find by randomly fooling around is that completion
> sometimes erases a standout space to the left of the word, inserts a plain
> space, and then draws the completed word in standout, so you end up with
> a command line with a "hole" in it. Any further redraw of the line after
> this point (such as completing again on a later word) repaints correctly
> and fills the hole.
>
> Fixing that probably means diving into the completion refresh code, so I
> think committing what Geoff has so far would be fine.
I've found another problem that seems to be caused by this patch
(located by git-bisect). When a bg'd job finishes, the cursor is drawn
in the wrong place in the new prompt (#bar characters to the left).
Pressing a key bound to reset-prompt fixes it.
The simplest test case i could find was
zsh -f
PS1="frobnizz %#" #not really needed but since the default
depends on hostname...
RPS1="foo%(1j.bar.)"
true &
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author