Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Incorrect cursor position when ZLE_RPROMPT_INDENT=0 (with a fix)
- X-seq: zsh-workers 44331
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Incorrect cursor position when ZLE_RPROMPT_INDENT=0 (with a fix)
- Date: Sun, 19 May 2019 23:07:53 +0200
- Cc: "zsh-workers@xxxxxxx" <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=EgSYflV3gPCxL8yDJsJORsDs1TpULkDZCsZ35pmKuts=; b=kbLDRmLyk+42iSbWTM8cphha7VBbT7FE2d0zuP8/dmjhxs61arq2ZxYVqNd1IvXSGw SsVb4D7ttLR0gs7FLaMqU23ol/F5CWnp/WzZsECoAy/9843mOyio47kQF6RDw7eNRpbw p/9D8ODh9hdIijRJnbpDyagr7vYThPA3kyb5JLu1g/Aw00pu5UoRPLM2xWW/3ITnwFJx Eaiv0jOFIkjW7L+GWeSMWGNr3lM/7DTXXbGIZMQ2YjoRrrRVTN5jKcNrMXQtD4lV2UE1 AZiZ85B8xd9bsBEOYuqlJaVDdpQUr5MZxy7lm358ZPdUz4grQ0E/xLYGgzJYXhMfnawA HnPA==
- In-reply-to: <CAH+w=7buWyujVw-PqWuB40ywQ5BrePrTYWdkkB1Q6RSwuVeG8A@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=4vMpx_B5TRNQzDAvBoTFszoKea2=uQr5xjd0vZVH6py+oVA@mail.gmail.com> <CAH+w=7bYdLornMBJmjE_RHgiRcywT05FXkOQdSapZHkdT30X0A@mail.gmail.com> <CAN=4vMozz41wH3=ZOoe=tAx70bXnD1ieZFScY7Zauby-33UcXw@mail.gmail.com> <CAN=4vMpWA+2zeRjthq4aeXyb7AAc40BpfEz8O0Uaj23a1O_F6Q@mail.gmail.com> <CAN=4vMqaGT+baaxJsGS1TC9Y9EER3_sRiQn-AM2LkQ=cVp=1Dw@mail.gmail.com> <CAH+w=7buWyujVw-PqWuB40ywQ5BrePrTYWdkkB1Q6RSwuVeG8A@mail.gmail.com>
On Sun, May 19, 2019 at 10:12 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
wrote:
> On Sun, May 19, 2019 at 11:51 AM Roman Perepelitsa
> <roman.perepelitsa@xxxxxxxxx> wrote:
> >
> > I've tested my patch on two more terminals: Dumb Linux terminal
> (TERM=linux) and Command Prompt with WSL. On both of them ZSH misbehaves
> without my patch and works correctly with it.
>
> This is promising and the patch looks plausible, but I must ask: Have
> you tested the case where the rprompt is printed on the final line of
> the visible screen?
>
I went back and retested. Yes, it works correctly when rprompt is printed
on the final line of the visible screen.
I've now tested on two more terminals: KDE Konsole and Alacritty. This is
the full list of terminals I've tested so far, all reasonably new versions:
- GNOME Terminal.
- MacOS Terminal.
- Dumb Linux Terminal.
- Windows Command Prompt (WSL).
- Konsole.
- Alacritty.
On all of them when RPROMPT is non-empty and ZLE_RPROMPT_INDENT=0 ZSH
behaves incorrectly without the patch, and correctly with the patch (
https://github.com/zsh-users/zsh/compare/master...romkatv:rprompt-indent2).
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author