* Robert Klemme (Mar 17, 2005 10:10):
> > I think it is - a bug in zsh.
> >
> > start with bash:
> >
> > [ensemble] ~/p/ruby/zeroconf $ ruby -e 'print "hello"'
> > hello[ensemble] ~/p/ruby/zeroconf $ zsh
> > ensemble% ruby -e 'printf "hello"'
> > ensemble%
> >
> >
> > I think zsh is wrong here..

Wow, amazing how everything is a bug.  Bugs, bugs, bugs...Bugs
everywhere!

> It's probably just the promt setting.  If the prompt starts with a CR then
> old content of the line is overwritten.

Precisely.  Zsh must know where it begins printing the prompt (and its
absolute width) to know when it has reached the right end of the
terminal (so that it can do proper wrapping or shifting).  There's a
promptcr module for Zsh that outputs a newline before printing the
prompt, thus output is never overwritten.  It's not very good, though.

See http://rubyurl.com/InP9S for a discussion on an alternative solution
to using promptcr,
	nikolai

-- 
::: name: Nikolai Weibull    :: aliases: pcp / lone-star / aka :::
::: born: Chicago, IL USA    :: loc atm: Gothenburg, Sweden    :::
::: page: www.pcppopper.org  :: fun atm: gf,lps,ruby,lisp,war3 :::
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}