zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: Re: Pre-5.0.5 part 3: Heuristic for ZLE_RPROMPT_INDENT
Date: Mon, 17 Feb 2014 10:34:48 -0800	[thread overview]
Message-ID: <140217103448.ZM21515@torch.brasslantern.com> (raw)
In-Reply-To: <CAHYJk3TxxFEkDvHh+-fThYn-d5KTVeNOSAVFF_nNz1CMMBsHaw@mail.gmail.com>

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".


  reply	other threads:[~2014-02-17 18:34 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 [this message]
2014-12-08  0:46           ` Mikael Magnusson
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=140217103448.ZM21515@torch.brasslantern.com \
    --to=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).