Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: draw prompt on the correct line after window change



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