Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: forwarded message
- X-seq: zsh-workers 3269
- From: Zefram <zefram@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (Z Shell workers mailing list)
- Subject: Re: forwarded message
- Date: Sat, 21 Jun 1997 16:15:23 +0100 (BST)
- Cc: roberto@xxxxxxxxxxxxxxxxx
- In-reply-to: <199706201832.OAA11300@xxxxxxxxxxxxxxxxxxxxxxxx> from "Richard Coleman" at Jun 20, 97 02:32:23 pm
Richard Coleman wrote:
>set prompt="%{\033]2;%n@%M:%/ - %l\007\033]1;%l@%m\007%}%h [%T] %B%n%b@%m:%B%.2%#%b "
>
>to set my xterm icon name & title and prompt.
>
>If I try to use the same kind of strings for zsh, the %{...%} doesn't seem
>to be really interpreted as I'd expect and I get this:
>
>\033]2;roberto@xxxxxxxxxxxxxxxxx:/build/zsh-3.1.1 - p2\007\033]1;p2@keltia\007203 [20:14] roberto@keltia:zsh-3.1.12%
The %{...%} is working just fine. The problem is sequences like "\033",
which have no special meaning in PS1. You need to put a literal escape
character into PS1.
-zefram
Messages sorted by:
Reverse Date,
Date,
Thread,
Author