Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: command substitution with control chars?
- X-seq: zsh-users 11336
- From: Atom Smasher <atom@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: command substitution with control chars?
- Date: Sun, 25 Mar 2007 14:52:02 -0400 (EDT)
- In-reply-to: <237967ef0703251133y79cde28coaa7a788f0ced8069@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Openpgp: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt
- References: <20070325094407.62594.qmail@xxxxxxxxxxx> <237967ef0703251133y79cde28coaa7a788f0ced8069@xxxxxxxxxxxxxx>
On Sun, 25 Mar 2007, Mikael Magnusson wrote:
It sounds like you just need to put your escape sequences inside %{ %}
pairs?
=====================
then i wind up getting colored "%{" and colored "%}" in the prompt, and
things are still hosed. maybe there's a way to do it, but i haven't
figured it out yet...
basically, i'm taking this idea <http://swicked.net/pages/bat_mon.html>
and trying to convert it from linux to bsd and from bash to zsh. i've got
a script that outputs battery status, and uses different colors to display
the output depending on the status... now to get the output into my
prompt...
anyway, it seems that if the output of the script includes the zsh escape
sequences it doesn't work as expected.
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"Insanity is doing the same thing over and over
again and expecting different results."
-- Albert Einstein
Messages sorted by:
Reverse Date,
Date,
Thread,
Author