Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Good documentation about literal escape sequences in prompt?
- X-seq: zsh-workers 10094
- From: Juhapekka Tolvanen <juhtolv@xxxxxxxxx>
- To: Oliver Kiddle <opk@xxxxxxxxxxxxx>
- Subject: Re: Good documentation about literal escape sequences in prompt?
- Date: Sun, 12 Mar 2000 21:34:49 +0200 (EET)
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: <38CBDFBB.F2917D52@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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@xxxxxxxxx --
-- 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author