GNU bug report logs -
#30544
26.0.91; ansi-term duplicates 2 line zsh prompts any time windows change (maybe other times)
Previous Next
Reported by: Aaron Jensen <aaronjensen <at> gmail.com>
Date: Tue, 20 Feb 2018 02:09:01 UTC
Severity: minor
Tags: confirmed, fixed
Found in versions 26.0.91, 25.1
Fixed in version 26.1
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Aaron Jensen <aaronjensen <at> gmail.com> writes:
> On Wed, Mar 14, 2018 at 6:06 PM, Noam Postavsky <npostavs <at> gmail.com> wrote:
>> Yes, I did PROMPT=$'one\ntwo' (by the way, I found I had to remove
>> 'prompt adam1' from my .zshrc (the default setup puts it in), otherwise
>> setting PROMPT has no effect). I can reproduce the problem in term.el,
>> but urxvt doesn't have any problems no matter how I resize.
>
> Ah, apparently I can only reproduce it in iterm2 if I have an RPROMPT
> that does a lineup and linedown to get the RPROMPT on the first
> line...
>
> PROMPT=$'one\ntwo'
> local _lineup=$'\e[1A'
> local _linedown=$'\e[1B'
> RPROMPT='%{${_lineup}%}%*%{${_linedown}%}'
Not sure if I'm missing some zsh context here, but when I do that, I see
literal "lineup" and "linedown" at the right. If do instead
PROMPT=$'one\ntwo'
RPROMPT=$'%{\e[1A%}%*%{\e[1B%}'
Then I get the current time on right, and still no prompt duplication
when resizing urxvt.
This bug report was last modified 7 years and 47 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.