From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27761 invoked from network); 5 Feb 2021 19:06:14 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 5 Feb 2021 19:06:14 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612551974; b=NSFSDYB1s63LN6Wlfb5okkuew9ZaH8te1iN2iHs7iIFkBYK2qkn5rcR9xwSafN5r/5LQG06Oqj mIW38MmhGV7IDpmXpNyDLOH9tO9U8N3EJnj81A/bNhS+buRHQ5OuOupHjJaD87kbeTMifnvAvE xZq4PQUPFwChxxHVJsdYojBGV+JEv5SRimtJXrkQdvMJVf7ZJnoylNdJo/0Cl7kaFzh50nY540 6bjKVN10D/zCkOZ06eiFjb0f+m32IQJmwalmH+xaTWXfvE8Kdy3MIM2/4uNLme5soMN94SqK+U 7nJcDwuaJ5dZu5GAq5U2CsbqXbI0aJtECUGWDWA0emGkVg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-wr1-f43.google.com) smtp.remote-ip=209.85.221.43; dkim=pass header.d=parpart-family.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=parpart.family; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1612551974; bh=xTPtRA/y630/W5eJ9VxIj/wxbw37gwKMsqv+YrxO5r8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=un1qQhHTgKDudfs640RIRNNQMab5qg47C+VT31zGUiFg5SJAIYVv1CxoMrZRYL4GU4phQpb44n PqUJJ3fv6jMTtCHu4iicOe0uDnE5Qi9tGf4GGRYk27tS90patUTKjhwqV4BA/zd10WHFuQ9MXQ PBeN99xtiloe90SOgNFjs5Suvhu5bWLdv1yGZkrrAA0cjYfY0yC1d2kGwZrn5ThCeUfXiqL5cs lAunHFNUiJS3I4Nmt5a40i554IOJvDN13hx1CdtFR0PfXnnxPKH5fSARR03IXGYWkMaRQu/T9e C8VdsvCETHYiw8D+okcMZwqeGK1Tl1tQ7TwTZWFl8L5xbw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=xTPtRA/y630/W5eJ9VxIj/wxbw37gwKMsqv+YrxO5r8=; b=ADRRPMCAdFyl3Q7YJU/jALijhv TfOyB5WJuPVI98sI0ZPKUf2iqNaY+FkuKIGQNyY5fwoTKopUSbhE+xcdGfpj1+0Jh9LaV1WSua6ts sjR8tFMUQ3PjBUuh8CUWcXgbdZTD4VNQMvnvo1exMcnDapCpEmZK/rgA9m3Wx6KzEfIyQeDwfP4Uf DGkZXuAknoIDIolzkl7tBDmGKDy1fcXaXimvAxd+qNU50mPChiPQiCCGkTV39kqCMhvbpiHesPejZ WWRH4XUnbcAtP5a+CgoeSvuN4QJK+VJ0itoRsehu+teXq9dH19u33m3GpQBat5+Zfdi8AhNrUhv6E hfUkjiEA==; Received: from authenticated user by zero.zsh.org with local id 1l86Qj-0006ed-9S; Fri, 05 Feb 2021 19:06:09 +0000 Authentication-Results: zsh.org; iprev=pass (mail-wr1-f43.google.com) smtp.remote-ip=209.85.221.43; dkim=pass header.d=parpart-family.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=parpart.family; arc=none Received: from mail-wr1-f43.google.com ([209.85.221.43]:33373) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l86QD-0006Hh-6R; Fri, 05 Feb 2021 19:05:38 +0000 Received: by mail-wr1-f43.google.com with SMTP id 7so8928694wrz.0 for ; Fri, 05 Feb 2021 11:05:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=parpart-family.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xTPtRA/y630/W5eJ9VxIj/wxbw37gwKMsqv+YrxO5r8=; b=s52PwmX6pd5Hdf9oY342kshETib6ZzxAPVjD0uvq0BkSoeJcrAL4fp73zMhiid7SFm rgRxhDbHoIB1rOPL8zO2GkgMLBBDs9wEk5uSAsPUgr+SuVnY9mKtk49FpPOVULlHVxm8 VkUMgd4hEDseD2E87YZSZMoCR9S2LgRLsEBmvJ4l5dC+WPYd5Qv1tX+eyny8v1pwVOAL AOdkxB5+5dNZVftSG4bj2+0S6VwSYCDXEtl4Vc7NGTEV714NlVYejWcd3i4PQnHl/Mw7 iInn/YdHfaJn/Bc9KjP0avX87qmAmmOkv4htAA5YMgojVai5eyeoKrAadcDT40zJxSne J6fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xTPtRA/y630/W5eJ9VxIj/wxbw37gwKMsqv+YrxO5r8=; b=lMpYAj2ysmhIsLMP0yKxQZM2C4skkLiuJfk5p16jjOlVVjKWbCSqno2ZS0jddhx93X qjyMFRdeQU/zusBylNaZ1cINmZhrxN3GRzhWpUqUnJR8s/L8Om7zFKCw/EVNGSnJFGpf 2wHsiGGDwC68cOlpPEAfAEfBDk344w8UOZ5SezTvjxndy9HMaboNgFUhi4E5LbHNuYd/ c5B2adcAbB7L0qmjT5ZvdMfYTV5cdzcLMJ43y35dsjLXqX+TbEZOgCJR1hA7/bnAdoBe C2o0zzTQdKLOlrAI+5ENbkslMh5MhEgCDR46U4Jqq/4rH6NShkPjg7lidrGN0+1PLzRl 4aHg== X-Gm-Message-State: AOAM533IZIICUSKkboLFT608PN1NUx0ZOv/lp+YzktIJbw2dQrjPQ35s 5kDH0T/UJSS5mJZHVJuO1bsarIOFoDcezLCYhxz9jg== X-Google-Smtp-Source: ABdhPJyZKf6XddklycntlP/XPQPwiqMiCZMtzNX0scn/P6a1Jg+s5ice6DQaDSUbjpNpqIYTyAUr0bfjy9oIsT9UoLY= X-Received: by 2002:adf:dd10:: with SMTP id a16mr6587512wrm.207.1612551936669; Fri, 05 Feb 2021 11:05:36 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Christian Parpart Date: Fri, 5 Feb 2021 20:05:27 +0100 Message-ID: Subject: Re: precmd hook invoked later than usual on very first prompt To: Roman Perepelitsa Cc: Zsh Users Content-Type: multipart/alternative; boundary="0000000000005e0ebb05ba9b818e" X-Seq: 26464 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: --0000000000005e0ebb05ba9b818e Content-Type: text/plain; charset="UTF-8" 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 wrote: > On Fri, Feb 5, 2021 at 6:59 PM Christian Parpart > 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. > --0000000000005e0ebb05ba9b818e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Yes inde= ed.=C2=A0

You can find i= t here:
<= div dir=3D"auto">
However, these VT sequences de= finitely 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 a= ny text.

Best regards,
Christian Parpart.

On Fri, Feb 5, 2021, 19:02 Ro= man Perepelitsa <roman.pe= repelitsa@gmail.com> 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.
--0000000000005e0ebb05ba9b818e--