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

Re: precmd hook invoked later than usual on very first prompt



Hi,

Yes indeed. 

You can find it here:
https://github.com/christianparpart/contour/blob/master/contour-integration.zsh#L36

However, these VT sequences definitely won't work in other terminals. But the general case should be clear. Only VT sequences are written to the terminal that do not generate any text.

Best regards,
Christian Parpart.

On Fri, Feb 5, 2021, 19:02 Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx> wrote:
On Fri, Feb 5, 2021 at 6:59 PM Christian Parpart
<christian@parpart.family> wrote:
>
> Was i writing preexec? Oh sorry. I meant precmd of course.

Oh, I think I know what this is about. This is almost certainly not a
bug in zsh.

[bcc:zsh-workers]
[cc:zsh-users]

Do you print something to the terminal in precmd? If you can post the
code of the precmd hook, it would help.

Roman.


Messages sorted by: Reverse Date, Date, Thread, Author