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)



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