Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: "off by one fix in multiple prompts" breaks multiline prompt
- X-seq: zsh-workers 43279
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Guillaume Chazarain <guichaz@xxxxxxxxx>, <zsh-workers@xxxxxxx>, <warepire.ml@xxxxxxxxx>
- Subject: Re: "off by one fix in multiple prompts" breaks multiline prompt
- Date: Mon, 13 Aug 2018 09:42:53 +0100
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180813084256euoutp02596f6b554a4e97be22e3043c24c9f8bb~KZRf3RVec1596415964euoutp02m
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1534149776; bh=2dG8AT6mpDng/g9N0Tpx59mAEsQlwWizd8VTPuNeBms=; h=Date:From:To:Subject:In-Reply-To:References:From; b=VBmLWLLp7yLZYCCJtpyxXDZvbjW4MJOpZHe/CdE62Ivjrx4g1jhkOcClFPI8I0MoD C+ZexvBswUhH6Se3xfeJDSo2R6fQhQADppeEHD0S4d6Nf0t5DB1LEmPokE+WK7xqYf lDVddN/TcZsEfTJdkNNFpK5GDiq17gjOlWY8YPMo=
- In-reply-to: <CAA879TMRSWDSkqHP206-JLaJ8F4U=18DYU1CpCwCQ4iWMu_4Tg@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: SCSC
- References: <CGME20180810072702epcas5p4ecaa5cffa5dc7668e2b2aa3a30824f36@epcas5p4.samsung.com> <CAA879TMRSWDSkqHP206-JLaJ8F4U=18DYU1CpCwCQ4iWMu_4Tg@mail.gmail.com>
On Fri, 10 Aug 2018 09:26:17 +0200
Guillaume Chazarain <guichaz@xxxxxxxxx> wrote:
> This commit[1] discussed here[2] breaks line editing when the prompt
> spans multiple lines, that happens for me since I include the full
> CWD in the prompt. See [3] for a demo. In the first "echo", the "j"
> is not visible in the command line and then when I try to edit the
> command line by adding a space, the command line does not match
> what's executed.
>
> This is on Debian amd64, using gnome-terminal 3.26.0.
The problem with this is all terminals are a bit different in generally
undetectable ways and off-by-one errors are endemic. Zsh is
particularly sensitive as not many other tools have multiline effects
without taking over the output of the entire screen.
I think I replied to a previous report saying about the best we could
do to fix generally was add a user control, though I'm not sure what
for that would take --- it would just have to be "suck it and see"
but it's an obscure thing to have to look for.
pws
> [1]
> https://sourceforge.net/p/zsh/code/ci/d8d9fee137a5aa2cf9bf8314b06895bfc2a05518/
> [2] http://www.zsh.org/mla/workers/2018/msg00091.html
> [3] https://gfycat.com/DecimalAdmiredJumpingbean
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author