From: Zefram <zefram@dcs.warwick.ac.uk>
To: zsh-workers@math.gatech.edu (Z Shell workers mailing list)
Cc: roberto@keltia.freenix.fr
Subject: Re: forwarded message
Date: Sat, 21 Jun 1997 16:15:23 +0100 (BST) [thread overview]
Message-ID: <4567.199706211515@stone.dcs.warwick.ac.uk> (raw)
In-Reply-To: <199706201832.OAA11300@cauchy.skiles.gatech.edu> 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@keltia.freenix.fr:/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
next prev parent reply other threads:[~1997-06-21 15:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-06-20 18:32 Richard Coleman
1997-06-21 15:15 ` Zefram [this message]
1997-06-21 15:20 ` Hrvoje Niksic
1997-06-21 15:25 ` Zefram
1997-06-21 15:35 ` Hrvoje Niksic
1997-06-21 15:45 ` Zefram
1997-06-21 1:48 Wez Furlong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4567.199706211515@stone.dcs.warwick.ac.uk \
--to=zefram@dcs.warwick.ac.uk \
--cc=roberto@keltia.freenix.fr \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).