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

Re: BUG: zsh overwrites last line of output



In the last episode (Oct 22), Peter Makholm said:
> Try look at the following:
> 
> galar% echo $ZSH_VERSION 
> 3.1.9
> galar% echo -n foo
> galar% echo -n "foo\nbar"
> foo
> galar% 
> 
> Somehow zsh overwrites the last line of output if it doesn't end with
> an new-line. On a (very) slow terminal I've been able to see that the
> "bar" in the last example actually gets written.

Correct;  this is so zle knows exactly where the cursor is.  If you
don't want this behaviour, add "setopt nopromptcr" to one of your
startup scrpits.

-- 
	Dan Nelson
	dnelson@xxxxxxxxxxxx



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