Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Why does colors() not use %{ %}?



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