diff options
author | Robby Russell <robby@planetargon.com> | 2013-12-03 00:18:17 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2013-12-03 00:18:17 -0800 |
commit | f0a7adcd3d40d0d760d298db749b1f70bb3aeeee (patch) | |
tree | 37f66d6b3a42f1f7a9bdb69978933c84aec0c29e /lib | |
parent | b8c156683504e1c7b59bd429aa8d0ae1661ff175 (diff) | |
parent | f057737e57b3e3acbd32614b4f4f03103ce764aa (diff) | |
download | zsh-f0a7adcd3d40d0d760d298db749b1f70bb3aeeee.tar.gz zsh-f0a7adcd3d40d0d760d298db749b1f70bb3aeeee.tar.bz2 zsh-f0a7adcd3d40d0d760d298db749b1f70bb3aeeee.zip |
Merge pull request #2176 from dejanlukan/spectrum
Added the spectrum_bls function, which prints all 256 colors set as the background.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spectrum.zsh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/spectrum.zsh b/lib/spectrum.zsh index 2fdf537ef..166c942fb 100644 --- a/lib/spectrum.zsh +++ b/lib/spectrum.zsh @@ -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 +} |