zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.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 17:12:23 +0100	[thread overview]
Message-ID: <CAHYJk3TxxFEkDvHh+-fThYn-d5KTVeNOSAVFF_nNz1CMMBsHaw@mail.gmail.com> (raw)
In-Reply-To: <140208115850.ZM30584@torch.brasslantern.com>

On 8 February 2014 20:58, Bart Schaefer <schaefer@brasslantern.com> wrote:
>
> } } This effect seems to occur only on some terminals but may be version
> } } specific because I get different results for the same terminal on
> } } different systems.
> }
> } More likely it's termcap/terminfo database version specific.  Can you
> } compare the terminfo settings for two cases of the same terminal giving
> } different behavior and report the difference?
> }
> } If it's not terminfo, it may be some kind of emulation option that has
> } a different setting in the Xdefaults etc.
>
> I've just compared xterm on my old CentOS box (which does not show the
> off-by-one effect) with xterm on my much newer Ubuntu box (where I *do*
> see the effect).  Except for some keypad definitions, the terminfo are
> identical.
>
> However, on CentOS, my settings for class XTerm include ReverseWrap:true
> whereas on Ubuntu I'm using the defaults.  Normally this would mean that
> terminfo/cap should have the "bw" capability, but it's false in both
> cases because of course it has to describe the default settings.
>
> So perhaps the following patch ...?  (The change to zle_refresh.c is to
> silence a spurious "may be used uninitialized" warning.)

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). I'm using urxvt and it does seem to
somewhat work if I just set RPS1=hello, but not with my actual
rprompt.
RPS1=%B%b ZLE_RPROMPT_INDENT=0 is enough to trigger the erroneous
display here, which causes the cursor to be offset one step to the
left. The same problem occurs in xterm.

-- 
Mikael Magnusson


  reply	other threads:[~2014-02-17 16:12 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 [this message]
2014-02-17 18:34         ` Bart Schaefer
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=CAHYJk3TxxFEkDvHh+-fThYn-d5KTVeNOSAVFF_nNz1CMMBsHaw@mail.gmail.com \
    --to=mikachu@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).