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

Re: Xterm Control Sequences in PROMPT



On Thu, Dec 28, 2000 at 08:19:50PM +0400,
Teodor Knapik <knapik@xxxxxxxxxxxxx> wrote:
> 
> Hi,
> 
> I am running zsh-3.1.9 under Linux (Mandrake 7.2)
> on an i686 and I would like to put a control
> sequence for xterm, namely, "ESC ]2; <something> BELL"
> in the propmpt, in order to write <something>
> to the title bar of the window. Unfortunately,
> it makes troubles with the line editor
> (I am in emacs mode).
> 
> Could you, please, inform me in the case someone
> fixes the bug for a future release ?

Hm, why don't you just set the xterm title from precmd?

precmd() {
   print -n "whatever you want"
}

> Best regards,
> 			Teodor

CU,
Thomas

-- 
 Thomas Köhler Email:   jean-luc@xxxxxxxxxxxxxxxxx     | LCARS - Linux
     <><        WWW:     http://jeanluc-picard.de      | for Computers
                IRC:             jeanluc               | on All Real
               PGP public key available from Homepage! | Starships

Attachment: pgpnPvlCDoPuA.pgp
Description: PGP signature



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