Added the spectrum_bls function, which prints all 256 colors set as the background. #2176

Merged
merged 1 commit into from Dec 3, 2013
Jump to file or symbol
Failed to load files and symbols.
+7 −0
Diff settings

Always

Just for now

View
@@ -26,3 +26,10 @@ function spectrum_ls() {
done
}
+# Show all 256 colors where the background is set to specific color
+function spectrum_bls() {
+ for code in {000..255}; do
+ ((cc = code + 1))
+ print -P -- "$BG[$code]$code: Test %{$reset_color%}"
+ done
+}