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

Re: new line

Alexey Savelyev wrote:
> [root@Home]/root:perl -e 'print "ff\n"'
> ff
> [root@Home]/root:perl -e 'print "ff"'
> [root@Home]/root:
> Am I doing anything wrong?
> in tcsh it work
> zsh 4.1.1-dev-1

You need to set the option NO_PROMPT_CR.  This is explained in the FAQ:
zsh usually prints a carriage return before the prompt, so that it knows
where the screen line wraps.  Long lines can't be edited properly
otherwise and right prompts don't display in the same place.  If you're
not worried about either of those, you can safely

setopt nopromptcr

Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070

The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
If you received this in error, please contact the sender and 
delete the material from any computer.

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