Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Why does colors() not use %{ %}?
- X-seq: zsh-workers 25308
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "Zsh hackers list" <zsh-workers@xxxxxxxxxx>
- Subject: Re: Why does colors() not use %{ %}?
- Date: Fri, 18 Jul 2008 18:03:13 -0700
- In-reply-to: <2d460de70807181723q4124849bl96066bd32890bfaa@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70807181723q4124849bl96066bd32890bfaa@xxxxxxxxxxxxxx>
On Jul 19, 2:23am, Richard Hartmann wrote:
}
} after a somewhat embarassing email to -users, I realized colors() does
} not properly escape color codes in its variables. What is the reason
} for this behaviour?
Because prompts are not the only place you might want to use colors,
and even in a prompt it's wasteful to include the %{ and %} multiple
times if you're going to use several color sequences in a row.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author