Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Pre-5.0.5 part 3: Heuristic for ZLE_RPROMPT_INDENT

On 8 February 2014 20:58, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> 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
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

Messages sorted by: Reverse Date, Date, Thread, Author