zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: Alexandros Kozak <agkozak@gmail.com>, <zsh-workers@zsh.org>
Subject: Re: Prompt wrapping problems since 42285 ("off by one fix in multiple prompts ")
Date: Mon, 14 May 2018 09:51:29 +0100	[thread overview]
Message-ID: <20180514095129.17786861@camnpupstephen.cam.scsc.local> (raw)
In-Reply-To: <005701d3e8ae$1eab9070$5c02b150$@gmail.com>

On Thu, 10 May 2018 15:27:44 -0700
"Alexandros Kozak" <agkozak@gmail.com> wrote:
> I have an asynchronous ZSH prompt
> (https://github.com/agkozak/agkozak-zsh-theme) that works quite well
> in ZSH 4.3.11-5.4.2. Ever since v5.5 came out, I've been having a lot
> of trouble when the prompt wraps; the cursor frequently appears a few
> characters back from where it should. Eliminating the RPROMPT
> sometimes helps a bit, but even then, if I enter something and then
> delete the line, the cursor will snap back on top of the text of the
> left prompt, not at its end.

Bart pointed out when this patch appeared that terminal behaviour simply
isn't well-defined enough that all of them have consistent wrapping
behaviour, and they don't even provide enough information for the shell
to decide by itself.

About the only possibility we have to is to expand the ability to
configure the settings (we currently have ZLE_RPROMPT_INDENT, which can
be set to 1 to try to massage our way out of trouble).

pws


      reply	other threads:[~2018-05-14  8:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20180510222848epcas1p217b8864e4a44eaba7f15d4a48f1836a7@epcas1p2.samsung.com>
2018-05-10 22:27 ` Alexandros Kozak
2018-05-14  8:51   ` Peter Stephenson [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=20180514095129.17786861@camnpupstephen.cam.scsc.local \
    --to=p.stephenson@samsung.com \
    --cc=agkozak@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).