Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Xterm title changing prompt problem: HELP!
- X-seq: zsh-users 2023
- From: mason@xxxxxxxxxxxxxxx (Geoff Wing)
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: Xterm title changing prompt problem: HELP!
- Date: 15 Jan 1999 14:29:13 GMT
- Organization: PrimeNet Computer Consultants
- References: <369F2AF4.5FD78841@xxxxxxxxxxxxx>
- Reply-to: mason@xxxxxxxxxxxxxxx
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