Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Xterm Control Sequences in PROMPT
- X-seq: zsh-workers 13319
 
- From: mason@xxxxxxxxxxxxxxx (Geoff Wing)
 
- To: zsh-workers@xxxxxxxxxxxxxx
 
- Subject: Re: Xterm Control Sequences in PROMPT
 
- Date: 29 Dec 2000 03:29:13 GMT
 
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
 
- Organization: PrimeNet Computer Consultants
 
- References: <20001228201950.A1431@xxxxxxxxxxxxx>
 
- Reply-to: mason@xxxxxxxxxxxxxxx
 
Teodor Knapik <knapik@xxxxxxxxxxxxx> typed:
               ^^^^^^^^^^^^^^^^^^^^ really: knapik@xxxxxxxxxxxxxxx
: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).
Sequences in the prompt which don't cause cursor movement need to
be enclosed within %{ and %} sequences.  See "PROMPT EXPANSION"
in the manual.  Also, the proper sequence terminator is 0x9c (8bit)
or ``ESC \''  0x1b 0x5c (7bit).  BEL (0x07) is not a standard
terminator.
You may also look at  precmd() or similar as an alternative to using
the prompt.
:Could you, please, inform me in the case someone
:fixes the bug for a future release ?
No, nobody's going to bother replying to invalid email addresses.
Regards,
-- 
Geoff Wing : <gcw@xxxxxxxxx>
Rxvt Stuff : <gcw@xxxxxxxx>
Zsh Stuff  : <gcw@xxxxxxx>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author