From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14758 invoked by alias); 15 Sep 2017 18:39:10 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 41712 Received: (qmail 14733 invoked by uid 1010); 15 Sep 2017 18:39:10 -0000 X-Qmail-Scanner-Diagnostics: from mail-pg0-f47.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(74.125.83.47):SA:0(-4.7/5.0):. Processed in 1.95124 secs); 15 Sep 2017 18:39:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=WnycAoVSEPUHEKKI9SzizmH0qJTNVpCvQ5P2kuC+fNY=; b=0YITVPOrOKCBHl+FLskncOOa/yjgGOmQK//nmghmSU1NNCoKVgTXO4aGXGK74yzEqg Oa3IsBLt1sOsCfwagtWtMggsAqYva0TUNpxEAoK48RV78B9Nh1Lrv0qZSh5i+Kv/b+HI y53DZyFI/BcD415n73LGinBD4KAqJc5ETMdZjSAlqvJ1vcjaoidUSVxsZFbuXj6LV3Zk 0DMn+A9Z/h5ikwrkYbDIRhfBPHqxa1BlowRZmo42YViqJl2RUK6Q/YEeLiPIZcnc19iw JxFYPKOt5Lns2eIrdgB3NObSJKNw+m4/YXkGtTG16aPCVIkd4c8QIBDtn3724lmjA//9 iK0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=WnycAoVSEPUHEKKI9SzizmH0qJTNVpCvQ5P2kuC+fNY=; b=SiAr3r+NK9Ux9m9UsnB3vRJdT4ZE3PQt5IgaNCnUR7MBfqGbJ1MYSr8JpvJJwOvFzw u0DOtAHzu33FPZXAUM3M7wgSzdNgLSNqh4jSTknK6DelYEDH/YEERbDFg/XaFurrakrw A03H92N2DO+/ncnh1DJIu12FUL8y0KCXTfCSzB+6sECPqK6WR1jp20WzKab9q73fuPQU 52JVPKpbf8CJvIA8oPw97bV/JeozITDTv3K+8uwsF0HE0wvtzHKdNVtafwuLUA1ZCCnB NaF/+ftLqVVgV3vSQRZ9zqsMYd4C0IigWD5F/SrMRg3io15BuW2t6Fna5sE6hzmuUI56 lfkQ== X-Gm-Message-State: AHPjjUjtVKBweANjnqoF8yJiL4Gi+irxvkYlnz3IegswzfOW+L3eOqt6 FRxg8M/dlOlEd/LG2XI= X-Google-Smtp-Source: ADKCNb50WdlSIvCH7tdjPfVreLunYbJV2D79amQDeDW2qfwGwC9pMNGXato8h7IqHjV9EzlH1p+okQ== X-Received: by 10.99.95.145 with SMTP id t139mr25147083pgb.153.1505500744446; Fri, 15 Sep 2017 11:39:04 -0700 (PDT) From: Bart Schaefer Message-Id: <170915113907.ZM26107@torch.brasslantern.com> Date: Fri, 15 Sep 2017 11:39:07 -0700 In-Reply-To: <48dff002-5ee0-dd38-dfe3-fb071125481d@veniogames.com> Comments: In reply to Ruud van Asseldonk "Initial prompt invisible (regression in 5.4.1)" (Sep 2, 10:22pm) References: <48dff002-5ee0-dd38-dfe3-fb071125481d@veniogames.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: Initial prompt invisible (regression in 5.4.1) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 2, 10:22pm, Ruud van Asseldonk wrote: } } There is a single text-colored pixel in the terminal at the normal } location of the cursor. That would not be a zsh thing, the shell would never print anything smaller than a period (.) unless you are using special drawing chars in your prompt. } This does not happen consistently, it happens about 1 in 4 times when I } open a new terminal. This sounds like a race condition. } It seems a weird issue to be a Zsh bug, but after } downgrading to 5.3.1 I have not observed this issue again. When } upgrading to 5.4.2 later I did observe the issue again. I've reviewed code changes made between those version and there has been no update to the prompt code that would account for this. However, there have been several changes intended to make the shell start up faster, including a signal handling optimization around the reading of the .zshrc et al. files. A possibility is that the shell now finishes its start-up and outputs the initial prompt, before the terminal has been fully drawn by the windowing system. As an experiment, try placing a "sleep 1" at the end of your .zshrc, and see if that reduces the frequency of this recurring.