zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: Initial prompt invisible (regression in 5.4.1)
Date: Fri, 15 Sep 2017 11:39:07 -0700	[thread overview]
Message-ID: <170915113907.ZM26107@torch.brasslantern.com> (raw)
In-Reply-To: <48dff002-5ee0-dd38-dfe3-fb071125481d@veniogames.com>

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.


      reply	other threads:[~2017-09-15 18:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-02 20:22 Ruud van Asseldonk
2017-09-15 18:39 ` Bart Schaefer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=170915113907.ZM26107@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).