zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: Guillaume Chazarain <guichaz@gmail.com>, <zsh-workers@zsh.org>,
	<warepire.ml@gmail.com>
Subject: Re: "off by one fix in multiple prompts" breaks multiline prompt
Date: Mon, 13 Aug 2018 09:42:53 +0100	[thread overview]
Message-ID: <20180813084255eucas1p102bc21872ad72a2cd049d8d9db2f0e86~KZResIryo0309103091eucas1p10@eucas1p1.samsung.com> (raw)
In-Reply-To: <CAA879TMRSWDSkqHP206-JLaJ8F4U=18DYU1CpCwCQ4iWMu_4Tg@mail.gmail.com>

On Fri, 10 Aug 2018 09:26:17 +0200
Guillaume Chazarain <guichaz@gmail.com> 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
> 


  reply	other threads:[~2018-08-13  8:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20180810072702epcas5p4ecaa5cffa5dc7668e2b2aa3a30824f36@epcas5p4.samsung.com>
2018-08-10  7:26 ` Guillaume Chazarain
2018-08-13  8:42   ` Peter Stephenson [this message]
2018-08-13 11:22     ` Guillaume Chazarain
2018-08-13 11:36       ` Peter Stephenson
2018-08-13 11:42         ` Guillaume Chazarain
2018-08-13 12:58           ` Peter Stephenson
2018-08-13 14:19             ` dana
2018-08-13 18:34               ` Guillaume Chazarain
2018-08-13 21:29               ` dana
2018-08-13 21:45                 ` Bart Schaefer
2018-08-13 22:44                   ` dana
2018-08-14  8:30                     ` Peter Stephenson
2018-08-14  6:41                 ` Guillaume Chazarain
     [not found]       ` <20180813123639.5899f64e@camnpupstephen.cam.scsc.local>
2018-08-13 11:40         ` Peter Stephenson

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='20180813084255eucas1p102bc21872ad72a2cd049d8d9db2f0e86~KZResIryo0309103091eucas1p10@eucas1p1.samsung.com' \
    --to=p.stephenson@samsung.com \
    --cc=guichaz@gmail.com \
    --cc=warepire.ml@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).