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

Re: Xterm title changing prompt problem: HELP!



Geoff Wing wrote:

> Andrew Gallagher <andrew.gallagher@xxxxxxxxxxxxx> typed:
>  PROMPT will overwrite the "echo -n"ed line whether it
> :is printed or not (so long as it is less than 80 chars).
>
> No, PROMPT will only overwrite the echo output if you have PROMPT_CR
> option set.  It is set by default, so this only applies to people who
> have done ``setopt nopromptcr'' (or ``unsetopt promptcr'') either
> interactively or via startup files.
>

Good point, but surely you mean that it _doesn't_ apply to those who have
"setopt nopromptcr" ...?

foo> setopt nopromptcr                                          (15:38, Fri
15)
foo> echo -n "ssssss"                                           (15:39, Fri
15)
ssssssfoo>                                                            (15:39,
Fri 15)
foo> setopt promptcr                                            (15:39, Fri
15)
foo> echo -n "ssssss"                                           (15:39, Fri
15)
foo>                                                            (15:39, Fri
15)


--
Andrew Gallagher
http://members.tripod.com/~AndrewGallagher/id.html





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