Date: Thu, 19 Jun 1997 23:04:45 +0200 From: Ollivier Robert <roberto@keltia.freenix.fr> To: chat@FreeBSD.ORG Subject: ZSH 3.x bug ? (Was: Re: OS/2 users going to FreeBSD? :-)) Message-ID: <19970619230445.55217@keltia.freenix.fr> In-Reply-To: <199706191525.RAA15226@bitbox.follo.net>; from Eivind Eklund on Thu, Jun 19, 1997 at 05:25:56PM %2B0200 References: <199706191239.IAA14178@gatekeeper.itribe.net> <Pine.NEB.3.96.970619091753.21140F-100000@toth.hq.ferg.com> <199706191525.RAA15226@bitbox.follo.net>
next in thread | previous in thread | raw e-mail | index | archive | help
According to Eivind Eklund:
> Eivind,
> trying to get more converts :)
Is the "%{...%}" thing working for you inside PS1 please ?
With 3.0.2 or 3.1.1, I can't get it to work at all. To change the title
and icon, I must do
if [ $TERM = xterm ]; then
precmd() {
print -n -P "\033]2;%n@%M:%/ - tty%l\007\033]1;tty%l@%m\007"
}
fi
PS1="%h [%T] %B%n%b@%m:%B%2.%(#.#.>)%b "
export PS1
because the following doesn't work:
PS1="%{\033]2;%n@%M:%/ - tty%l\007\033]1;tty%l@%m\007%}%h [%T] %B%n%b@%m:%B%2.%(#.#.>)%b "
cf zshmisc(1)
%{...%}
Include a string as a literal escape sequence. The
string within the braces should not change the cur-
sor position. Brace pairs can nest.
It does work in tcsh :-)
--
Ollivier ROBERT -=- FreeBSD: There are no limits -=- roberto@keltia.freenix.fr
FreeBSD keltia.freenix.fr 3.0-CURRENT #20: Fri Jun 13 00:16:13 CEST 1997
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970619230445.55217>
