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

Re: Mac OS X Prompt Bug



On Wed, 24 Nov 2010 08:58:26 -0500
Sorin Ionescu <sorin.ionescu@xxxxxxxxx> wrote:
> A % character appears before every prompt then it is replaced by the
> prompt; 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. 

That's almost certainly a side-effect of the PROMPT_SP option, see the
manual entry. This gets printed at the start of the line, then covered
over by the prompt itself.

Somehow in the case you're showing some output is coming out between zsh
printing the mark and printing the prompt itself.  I have no idea where
that would be, but the pre-prompt activities are carried out quite
early, before the line editor is set up, so there is a reasonable amount
of scope for it.

If you don't have time to track down where the extra output is coming
from, turning off the PROMPT_SP option should make the mark go away.

-- 
Peter Stephenson <pws@xxxxxxx>            Software Engineer
Tel: +44 (0)1223 692070                   Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom



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