From owner-freebsd-chat Thu Jun 19 14:31:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id OAA20424 for chat-outgoing; Thu, 19 Jun 1997 14:31:59 -0700 (PDT) Received: from mexico.brainstorm.eu.org (root@mexico.brainstorm.fr [193.56.58.253]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id OAA20394 for ; Thu, 19 Jun 1997 14:31:22 -0700 (PDT) Received: from brasil.brainstorm.eu.org (brasil.brainstorm.fr [193.56.58.33]) by mexico.brainstorm.eu.org (8.8.4/8.8.4) with ESMTP id XAA17752 for ; Thu, 19 Jun 1997 23:31:09 +0200 Received: (from uucp@localhost) by brasil.brainstorm.eu.org (8.8.4/8.6.12) with UUCP id XAA09856 for chat@FreeBSD.ORG; Thu, 19 Jun 1997 23:31:02 +0200 Received: (from roberto@localhost) by keltia.freenix.fr (8.8.5/keltia-uucp-2.9) id XAA08722; Thu, 19 Jun 1997 23:04:45 +0200 (CEST) Message-ID: <19970619230445.55217@keltia.freenix.fr> Date: Thu, 19 Jun 1997 23:04:45 +0200 From: Ollivier Robert To: chat@FreeBSD.ORG Subject: ZSH 3.x bug ? (Was: Re: OS/2 users going to FreeBSD? :-)) References: <199706191239.IAA14178@gatekeeper.itribe.net> <199706191525.RAA15226@bitbox.follo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.76 In-Reply-To: <199706191525.RAA15226@bitbox.follo.net>; from Eivind Eklund on Thu, Jun 19, 1997 at 05:25:56PM +0200 X-Operating-System: FreeBSD 3.0-CURRENT ctm#3392 AMD-K6 MMX @ 208 MHz Sender: owner-chat@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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