Zsh Mailing List Archive
Messages sorted by:
Re: Mac OS X Prompt Bug
- X-seq: zsh-workers 28443
- From: Sorin Ionescu <sorin.ionescu@xxxxxxxxx>
- Subject: Re: Mac OS X Prompt Bug
- Date: Wed, 24 Nov 2010 11:59:11 -0500
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:x-mailer; bh=Wn+SJpGJH42IuuH06vXYFo2XWTPx/QWWgTqV/M1Lhj8=; b=tbiCKa4twWC1ZyuNdWx+rtslGDeeIhLQ39C/1FZ9BZ9TFvf2dJemQ5gPTX7HS89qB5 eWGAPVTMG4LteccJw2Q6zXgmC2wneLcbejBZLdw2wTbcXdqdQ6P7xnU6cytIjqte2sVo s3vm9ss4zP2PUREhUQnJyk+iE7l1Df3pKnqhs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:x-mailer; b=cd+NEs5YVOf83FI2URqRvPvSanjknLuvx+UEaXS1qTTfl2Z+B0NrNd1bXPy5jJqKzt zmLLNdZQAhVeRPYCBMrYR3LGBIoyypRnBpQjcHbFAErKH0jHWpCdfG3UCc6JfgRnWWK/ MJ3ZoPgEBj0CtdTB8iYhfd7d7p8Yb//Lut++4=
- In-reply-to: <20101124153007.GF1727@xxxxxxxxxxxxxxxxxxx>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:email@example.com>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <BAB9C52A-B68A-4B5A-99C2-F85B310B1380@xxxxxxxxx> <20101124153007.GF1727@xxxxxxxxxxxxxxxxxxx>
Yes, iTerm2 does not have this problem. While unsetopt PROMPT_SP removes the %, the blank lines are still echoed. The easiest way to test this is to touch ~/.hushlogin and open Terminal.app. Notice the scrollbar.
So, PROMPT_SP is definitely not the problem. It seems the prompt is being pushed down by the blank lines. Hence why % is not being overwritten by the prompt in the screenshot.
On 24 Nov 2010, at 10:30, Vincent Lefevre wrote:
> On 2010-11-24 08:58:26 -0500, Sorin Ionescu wrote:
>> Please have a look at the screenshot at
>> http://i.imgur.com/huNpI.jpg. Otherwise, the following text may not
>> make sense.
>> A % character appears before every prompt then it is replaced by the
> This is a very useful feature (which can be disabled), to know when
> some output hasn't been followed by a newline character, e.g. try
> echo -n foo
> Other shells do not do this, hence the difference.
>> so, it only flashes for a fraction of a second. However, if
>> the buffer is empty when ZSH starts, such as when one has a
>> ~/.hushlogin file, it results in the behaviour in the screenshot,
>> which is % character followed by blank lines.
> I don't have such a problem under Mac OS X (using iTerm, but I hadn't
> noticed it with Terminal either in the past). This may come from the
> terminal (a bug?) or its configuration.
> Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.net/>
> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
> Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)
Messages sorted by: