Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: draw prompt on the correct line after window change
- X-seq: zsh-workers 45259
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: PATCH: draw prompt on the correct line after window change
- Date: Mon, 6 Jan 2020 20:40:12 +0100
- Cc: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- In-reply-to: <CAH+w=7ahPsMBEEXm-mgQnQpA6tnCpZzL77njcnqk72dkGzARJA@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=4vMp+E7esA48bEtRs-+Rmm9ng7i+FayGVqcLZqyjwVkayAw@mail.gmail.com> <CAKc7PVBEBDvmoxPNgPJUHK8wn2U-9cSNcdr0ADTumV_pu_D2Ww@mail.gmail.com> <CAN=4vMpWxg_-OLRSOYu+JcAnpuvdUp+k+7HVtPH9sXtEFiVh8g@mail.gmail.com> <CAKc7PVCBoLWhNMVdQGmmgFB_zaObo2Ga=YU21yWJC-6KZ+EsHQ@mail.gmail.com> <CAN=4vMpw1EEQHyhx2dAVN8cZ78SMy6-xmWFM1tRX8TDtsTN-fw@mail.gmail.com> <CAKc7PVB1Zmhv6JsLzVVUgSr6Yzyt8O9+Zr7tg3RUS1NfTkY+Mg@mail.gmail.com> <CAH+w=7ahPsMBEEXm-mgQnQpA6tnCpZzL77njcnqk72dkGzARJA@mail.gmail.com>
On Mon, 6 Jan 2020 at 20:28, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> IIR the problem correctly, a possible approach to resolve my concern would be to have the terminal report the cursor position for the shell to read+save it, rather than rely on the terminal save/restore action.
Ah, and that's doable by the \e[6n escape, like in the promptnl function:
https://github.com/zsh-users/zsh/blob/master/Functions/Misc/promptnl#L25
--
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org
Messages sorted by:
Reverse Date,
Date,
Thread,
Author