Zsh Mailing List Archive
Messages sorted by:
Re: Incorrect cursor position when ZLE_RPROMPT_INDENT=0 (with a fix)
- X-seq: zsh-workers 44336
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Charles Blake <charlechaud@xxxxxxxxx>
- Subject: Re: Incorrect cursor position when ZLE_RPROMPT_INDENT=0 (with a fix)
- Date: Mon, 20 May 2019 12:46:41 +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=ZVYN3NmIWMruoIBmZykoLpyiRqs9ZQpCMvGKw65YDFY=; b=QhfoUQirh///oJsIkeKHBQh93mRdttlpsvz8sTVKitDTRKNCekP929xOQzin2IWNYP lF4TM0Nho0ApZ7k2SdKXDS4MMZ7jgKWm+qoPHlu0rx6wxktc2y2QNTMOH2RCvQZVC616 Sh6Po4YDvw75Kbpoj8oaHEagyCf/DKiu6SXaRchmNUk7zQbDlV67YfebBAqqxlXtWubx 2rt2k0jXRzlYbfMwvACwBTBkfVrJVG11KjQhniU6AJk3cwI0SJYuPZyy/IKgCTfuFRwv bat3+Jil3u6PcnRW/V0DSInSgrIncmZlQQ/l01hFjwERGxX+nwjpg8OAjp58ZwAnyBlV rXjg==
- In-reply-to: <CAKiz1a8wkSkCz6snNrQRdS3npNkMdC-yUgL7SKnKwHL_RZVSdg@mail.gmail.com>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:email@example.com>
- List-unsubscribe: <mailto:firstname.lastname@example.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> <email@example.com> <CAN=4vMo9oZ19n5kwNiNDjSHQAnNJHXRBPSfZstN7QOvXgN3WrQ@mail.gmail.com> <CAKiz1a8wkSkCz6snNrQRdS3npNkMdC-yUgL7SKnKwHL_RZVSdg@mail.gmail.com>
On Mon, May 20, 2019 at 12:22 PM Charles Blake <charlechaud@xxxxxxxxx>
> For me XTerm (vsn 337 on Gentoo), I got the unpatched zsh -df show "after
> 2" which I take it differs from your results.
Thanks for the data point. Originally I've tried it on XTerm 330. I've now
also tested it on XTerm 345 -- the latest release. It gives the same
results as all other terminals I'd tested. I wasn't able to find the
sources for XTerm 337. Do you know where I can obtain them?
However, it's not likely that the same version of ZSH works on XTerm 330
and 345 but breaks on 337. A more plausible explanation is that there is
something else in our setups that causes the difference in terminal
behavior. Perhaps ZSH? I've tested with ZSH 5.4.2 that comes with Ubuntu
18.04 and with the latest version of the code that I pulled from
fae7c853319798e170a0bcf1b3098b1a07447c70). Which version of ZSH are you
Also, is it feasible for you to try my patch with the same terminal that
exhibits correct behavior without patching?
I also got rxvt-unicode-9.22
> to have the unpatched zsh -df put the curser just after the 2. OTOH,
> trying "st" (simple term from sucksless), I got the incorrect position "on
> top of" the 2. You may also want to check the terminal emulator in PuTTY.
> HP-UX and AIX terminals were always "odd", but those are harder to get
> access to.
Thanks, I'll try PuTTY.
Messages sorted by: