Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Get cursor position (Was: [bug report] prompt can erase messages written on the terminal by background processes)
- X-seq: zsh-workers 51147
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>, Millian Poquet <millian.poquet@xxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: Get cursor position (Was: [bug report] prompt can erase messages written on the terminal by background processes)
- Date: Thu, 8 Dec 2022 17:39:33 -0800
- Archived-at: <https://zsh.org/workers/51147>
- In-reply-to: <20221208082103.zg44mrv77jrizsaj@chazelas.org>
- List-id: <zsh-workers.zsh.org>
- References: <9e3026aa-39a1-dd50-4d29-a64724d4eaaf@irit.fr> <CAN=4vMq2kc1cSV_0N-c6o32C3UR3hVSjE3mF+kV4pjcy7YR9=g@mail.gmail.com> <CAH+w=7aDn7SCv4Bao7ZQqtUaEv8EkvBXa15kM_nkF_GHLAcSFg@mail.gmail.com> <20221208082103.zg44mrv77jrizsaj@chazelas.org>
On Thu, Dec 8, 2022 at 12:21 AM Stephane Chazelas <stephane@xxxxxxxxxxxx> wrote:
>
> 2022-12-07 19:46:37 -0800, Bart Schaefer:
> > IFS=$'\e[;' read -s -d R -A ${1:-reply}
> > shift 3 ${1:-reply}
>
> Shouldn't that be shift 2?
Yeah, I changed the function to only return the column and then
neglected to edit all the names before copy-pasting. Note precmd
referenced subscript [1] not [2].
Messages sorted by:
Reverse Date,
Date,
Thread,
Author