Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: draw prompt on the correct line after window change
- X-seq: zsh-workers 44529
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Subject: Re: PATCH: draw prompt on the correct line after window change
- Date: Mon, 15 Jul 2019 21:41:16 +0200
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=05y+5t7V/5fx3x4yC4GTEHQ0reexraMi8RhCo5Nc1PI=; b=DbIlBon9w5iiurpvx1RHuHsQi+vOX9OkhYrtS8OYMd9T/eeKauMflc3aRW8N3U97tI rKngtrxZVEy2k9+ezUZAR5eZfcfV4ZQZO7moKunUQkvxQCIVBpUJpk6mAK/kbHcejQxZ hR9EsdV4Lp6QTMjlWBl9wTG4j7U9DnDuXg/Ws+T9DbyzMUqKCZbpt1sv6n3IXo0F3GGi pt7nriDmaJu2dbTDvMM/06GElFrAZ5Z5x9Re1dc83eUPQ+0gRM5h3g4A2UO1tAy2yfD6 2284srT9Hr+ZBPetra2BJyiMj7BAD1ozlM+Gk8P7eSYpqqecpP3uTByz3dZ7z1jC7G4b VM8g==
- In-reply-to: <CAN=4vMorgGUMYDh7BKmLf+Lsiy3=i3ekiKaXp_oQbABTBVTFyA@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAN=4vMp+E7esA48bEtRs-+Rmm9ng7i+FayGVqcLZqyjwVkayAw@mail.gmail.com> <CAHYJk3Sa8Et2N274ogw2ZB2HzgduKPrNGOUMH8LethJN6tDMPA@mail.gmail.com> <CAN=4vMorgGUMYDh7BKmLf+Lsiy3=i3ekiKaXp_oQbABTBVTFyA@mail.gmail.com>
On Mon, Jul 15, 2019 at 9:32 PM Roman Perepelitsa
<roman.perepelitsa@xxxxxxxxx> wrote:
>
> On Mon, Jul 15, 2019 at 9:14 PM Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> >
> > I've tested it on urxvt and it makes things worse there, enlarging the
> > window always deletes the last output line even with an empty input
> > line.
>
> Thanks for trying it out.
>
> I cannot reproduce this with the following procedure:
>
> 1. Ubuntu 18.04, fresh install.
> 2. apt install rxvt-unicode (v9.22)
> 3. urxvt
> 4. PROMPT="${(pl.$COLUMNS..-.)}%f"$'\n> ' zsh -df
> 5. reset
> 6. Hit <enter> a few times.
> 7. Resize terminal window back and forth, both fast and slow.
>
> What should I do to see lines being deleted when enlarging the window?
P.S.
I've tried the same steps on ZSH without my patch. The current prompt
moves one line up every time I enlarge the window, erasing the
previous line in the process. This is the sort of issue my patch is
meant to fix.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author