From: Mikael Magnusson <mikachu@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh workers <zsh-workers@zsh.org>
Subject: Re: Pre-5.0.5 part 3: Heuristic for ZLE_RPROMPT_INDENT
Date: Mon, 8 Dec 2014 01:46:17 +0100 [thread overview]
Message-ID: <CAHYJk3RN2iA4jxhZF3Kgi-0tpEwWxYL4ZfvNSbGWstZAv02S=w@mail.gmail.com> (raw)
In-Reply-To: <140217103448.ZM21515@torch.brasslantern.com>
On Mon, Feb 17, 2014 at 7:34 PM, Bart Schaefer
<schaefer@brasslantern.com> wrote:
> On Feb 17, 5:12pm, Mikael Magnusson wrote:
> }
> } I just updated zsh for the first time since before all this, and
> } setting ZLE_RPROMPT_INDENT=0 breaks the display for me (or with the
> } heuristics, not setting it to 1).
>
> With xterm (and I presume with urxvt) you need ReverseWrap: true for
> a zero indent to work correctly. The default is false, at least for
> xterm (I don't use/have installed urxvt to check). This default
> ought to be reported correctly by terminfo, but it's quite possible
> that it is not, in which case the heuristic would get it wrong. It is
> after all a heuristic, not a perfect test.
>
> A dump of the key/value pairs in $terminfo might be instructive.
>
> } I'm using urxvt and it does seem to somewhat work if I just set
> } RPS1=hello, but not with my actual rprompt.
>
> I don't can't reproduce any difference between having a plain string
> prompt and having one with bold/nobold etc., but it's not beyond the
> realm of imagination that an emulator would (incorrectly) treat such
> controls as "printing beyond the margin".
I get the glitch when the resulting string is empty, but still prints
something. Eg,
RPS1=%b
RPS1=%f
RPS1=$'\0'
produce the error while
RPS1=' %b'
RPS1='%f '
don't.
--
Mikael Magnusson
next prev parent reply other threads:[~2014-12-08 0:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-02 21:58 Bart Schaefer
2014-02-07 9:45 ` Oliver Kiddle
2014-02-07 16:46 ` Bart Schaefer
2014-02-08 19:58 ` Bart Schaefer
2014-02-17 16:12 ` Mikael Magnusson
2014-02-17 18:34 ` Bart Schaefer
2014-12-08 0:46 ` Mikael Magnusson [this message]
2014-12-08 4:20 ` 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='CAHYJk3RN2iA4jxhZF3Kgi-0tpEwWxYL4ZfvNSbGWstZAv02S=w@mail.gmail.com' \
--to=mikachu@gmail.com \
--cc=schaefer@brasslantern.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).