The explanation
explains everything, except the percent sign. BTW, In my case, I see a
reverse-video percent sign printed. What does it mean? 3. When the function returns, the screen turns into :>> pc31 ~ $ sleep 10> azerty%> pc31 ~ $ azerty>> Please note that the percent sign (%) is followed by spaces up to the> end of the line, and that there is no newline after that.>> While it's not a major problem, I found that amazing. Bug or feature?I think you are experiencing the effects of the new PROMPT_SPACESoption, which is the new solution to the NO_PROMPT_CR debate that hasbeen around for quite a time.IIRC, by default zsh now print spaces that fill the terminal width andthen prints a CR. If nothing had been printed before, the last spaceis on the last column but the cursor is still on the same line so theCR makes it return at the beginning of the line so that you won't seean empty line. If something had been printed on the line before, thenthe cursor is going to be on the next line, so that your prompt won'tbe printed over previous data that was not followed by a NL. This ought to end the debate about PROMPT_CR :) --J"Toi, je te trouve pas la même tête que sur la page précédente" -- Wakamiya -- Dr. Zvi Har'El mailto:rl@xxxxxxxxxxxxxxxxxxx Department of Mathematics tel:+972-54-4227607 icq:179294841 Technion - Israel Institute of Technology fax:+972-4-8293388 http://www.math.technion.ac.il/~rl/ Haifa 32000, ISRAEL "If you can't say somethin' nice, don't say nothin' at all." -- Thumper (1942) |