Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Support more colors
- X-seq: zsh-workers 50212
- From: Jan Breig <subscriptions@pygos.space>
- To: schaefer@xxxxxxxxxxxxxxxx
- Cc: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] Support more colors
- Date: Thu, 12 May 2022 23:19:49 +0200
- Archived-at: <https://zsh.org/workers/50212>
- In-reply-to: <CAH+w=7YCWFrnKMqtvu1z28SaVYNEDwQ5htfVjQh_PraaqW+vuQ@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <5af198ae-17e7-1136-8c6e-8e3008c43c00@pygos.space> <CAH+w=7YCWFrnKMqtvu1z28SaVYNEDwQ5htfVjQh_PraaqW+vuQ@mail.gmail.com>
Thanks for the suggestion, but your email client or server has
mangled the diff. Can you attach it as a .txt file?
Yes, sorry that was due to CRLF/LF conversion.
This one should work:
diff --git a/Functions/Misc/colors b/Functions/Misc/colors
index 027ca9a..49d44f9 100644
--- a/Functions/Misc/colors
+++ b/Functions/Misc/colors
@@ -62,6 +62,16 @@ color=(
# 63 double-overline-or-left
# 64 stress
# 65 no-ideogram-marking
+
+# Strong color codes
+ 90 strong-gray 100 bg-strong-gray
+ 91 strong-red 101 bg-strong-red
+ 92 strong-green 102 bg-strong-green
+ 93 strong-yellow 103 bg-strong-yellow
+ 94 strong-blue 104 bg-strong-blue
+ 95 strong-magenta 105 bg-strong-magenta
+ 96 strong-cyan 106 bg-strong-cyan
+ 97 strong-white 107 bg-strong-white
)
# A word about black and white: The "normal" shade of white is really
@@ -79,6 +89,7 @@ for k in ${(k)color}; do color[${color[$k]}]=$k; done
# Add "fg-" keys for all the text colors, for clarity.
for k in ${color[(I)3?]}; do color[fg-${color[$k]}]=$k; done
+for k in ${color[(I)9?]}; do color[fg-${color[$k]}]=$k; done
# This is inaccurate, but the prompt theme system needs it.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author