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:
> :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" ...?
>
> Ah, sorry, when I said "this only applies ..." I meant along the lines of
> "the only people who need take notice of this ..."
>

I see what you mean now.

To get around this if you have done "setopt nopromptcr", you just tack the ^M
character onto the end of the "echo -n"ed string manually... et voila.


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





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