From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13595 invoked from network); 12 Mar 2000 19:35:53 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 12 Mar 2000 19:35:53 -0000 Received: (qmail 8456 invoked by alias); 12 Mar 2000 19:35:47 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10094 Received: (qmail 8448 invoked from network); 12 Mar 2000 19:35:46 -0000 Date: Sun, 12 Mar 2000 21:34:49 +0200 (EET) From: Juhapekka Tolvanen To: Oliver Kiddle cc: zsh-workers@sunsite.auc.dk Subject: Re: Good documentation about literal escape sequences in prompt? In-Reply-To: <38CBDFBB.F2917D52@u.genie.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT On Sun, 12 Mar 2000, Oliver Kiddle wrote: > Juhapekka Tolvanen wrote: > PS1="%{"$'\e[1;31m'"%}$PS1%{"$'\e[0m'"%}" > > > When I find some escape sequences from /usr/share/zsh/functions/colors, how > > can I "convert" them so, that I can put them to my PS1 between %{...%} ? > You should be able to take my line above as an example of this. Thanks, I needed that! (C) Gillette. It works. And now, somebody please add that to FAQ of Zsh. -- -- Juhapekka "naula" Tolvanen * * * U of Jyväskylä * * juhtolv@st.jyu.fi -- -- http://www.cc.jyu.fi/~juhtolv/ * * * * " STRAIGHT BUT NOT NARROW !! " -- --------------------------------------------------------------------------- "I don't want to run a company. I'm not good at managing people. You have a problem with the guy in the next cubicle? I don't care. Shoot him or something." Marc Andreessen, founder of Netscape, in Rolling Stone, May '97