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

Re: Functions/Misc/colors vs. region_highlight



On Sat, 24 Oct 2020 at 03:50, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
You're correct that "standout" doesn't match the terminology in
ECMA-48.  The use of "standout" was chosen to follow the terminology
in prompt strings, I believe.

This matched the behavior of most terminals at the time (notice
${(k)color[(r)standout]} is actually from Sven all the way back in
2001).  Also, there's no way to directly reference an escape sequence
for any of the "Attribute Codes" (they aren't in the $fg / $bg
hashes), so those values are mostly there for commentary value.

I would have no objection to adding "italic"/"no-italic" to the color
hash.  It also appears standout would more accurately be tied to
reverse-video now, but because the keys of the hash are the numeric
codes we can only have one or the other.

Would it be possible to drop `standout` (as it's rather ambiguous) and instead add both `italic` and `reverse`? They both have `terminfo` entries.

It would be great if Zsh could eventually support the same highlighting keywords as [Git does](https://www.git-scm.com/docs/git-config#Documentation/git-config.txt-color), but I guess that's a long way off.



Messages sorted by: Reverse Date, Date, Thread, Author