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

Re: Xterm title changing prompt problem: HELP!



Andrew Gallagher <andrew.gallagher@xxxxxxxxxxxxx> typed:
:Geoff Wing wrote:
:Or alternatively, take the escape sequence out of PROMPT and "echo -n" it
:from inside the precmd() function ... here is my version:
:
:The advantage of this is that it doesn't mess up non-xterm terminals so
:much (where the escape sequence will not be recognised and thus _will_
:shift the cursor). 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. 

Regards,
-- 
Geoff Wing   <gcw@xxxxxxxxx>            Mobile : 0412 162 441
Work URL: http://www.primenet.com.au/   Ego URL: http://pobox.com/~gcw/



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