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 44333
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Yannic Schröder <schroeder@xxxxxxxxxxxxxxx>
- Subject: Re: Incorrect cursor position when ZLE_RPROMPT_INDENT=0 (with a fix)
- Date: Mon, 20 May 2019 10:36:05 +0200
- Cc: 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=n/7QLRywSAwcLe9cObfDWqmVws3EQXGXIYRP38m2WgA=; b=R5lvNaaU4BgwXx3ONPbripT9DQCimTFW3tISwFDSzBGLycNnWy9GqZUphW/o2JP3ts sL5HVFDKTic0vgDmFa+z9fDu6XA/HHVnuzcTSuu4YnvTuPJqUtM4p2SL+5I4402MyQPr 9/xznOvS+bGbYGksqQ80C+K+W+Xm8dKCw5g76kUEKrb3nVgyjqV75i68gd/Okwml1bE0 DlxsBAh1js5JBe6GhrMIPGZC6FLvQJIAlbJ4SIrBQFKhnC6olaqdhi9ud2vyLkHgQDdr o8IBkoFm5JOuJj97oXyJXrd3WD7EH4cMXCO+bcDM8bxkMv8I28HRG5aE1m93ZNl88h+S 6rhw==
- In-reply-to: <68081d8c-1aa6-203b-eb6c-e2d048de1340@ibr.cs.tu-bs.de>
- 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> <CAN=4vMr46PsxS-+gDSBU=mGeGMLtWsRxTp9wMAB87qL12serNQ@mail.gmail.com> <68081d8c-1aa6-203b-eb6c-e2d048de1340@ibr.cs.tu-bs.de>
On Mon, May 20, 2019 at 10:22 AM Yannic Schröder <schroeder@xxxxxxxxxxxxxxx>
wrote:
> Maybe add some of the common alternative Linux terminals to the test?
> Like Terminator and Tilix?
>
Thanks for the advice. Just tested these. I also added XTerm to the list.
They all behave as the other terminals I've tested yesterday.
So far I've tested 9 terminals on 3 operating systems. They all behave
identically without my patch (the cursor position is off by one) and with
my patch (the cursor position is correct).
I suppose there should be a terminal on which the unpatched ZSH works
correctly but so far I haven't found it. I'd really like to. If anyone here
is using a terminal for which the following test works, please give a
holler.
1. Type `zsh -df`.
2. Type `ZLE_RPROMPT_INDENT=0 PROMPT=12 RPROMPT=3`.
3. Observe the position of the cursor. The correct position is after '2'.
All terminals I've tested put cursor on '2' -- one position to the left of
correct.
Roman.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author