summaryrefslogtreecommitdiffstats
path: root/bin/show_colors
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-04-22 19:19:47 -0400
committerJesse Luehrs <doy@tozt.net>2014-04-22 19:20:45 -0400
commit14428b181601070fb0aa79a8402532c0e774a3a7 (patch)
treec1a5994e434f59eaf19648b992c66b5acb761be4 /bin/show_colors
parentdac1dd250a0c70d7e7dd357d2fd2783f474a8adb (diff)
downloadconf-14428b181601070fb0aa79a8402532c0e774a3a7.tar.gz
conf-14428b181601070fb0aa79a8402532c0e774a3a7.zip
also show 256color stuff
Diffstat (limited to 'bin/show_colors')
-rwxr-xr-xbin/show_colors9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/show_colors b/bin/show_colors
index c6b46a4..5588f09 100755
--- a/bin/show_colors
+++ b/bin/show_colors
@@ -15,3 +15,12 @@ for attr in 0 1 2 3 4 5 6 7 ; do
done
printf '\033[0m'
done
+
+printf '\n'
+for color in $(seq 0 255); do
+ printf '\033[%s;%s;%sm \033[m' 48 5 $color
+ if [[ $color -eq 15 || $(echo "scale = 0; ($color - 15) % 36" | bc) -eq 0 ]]; then
+ printf '\n'
+ fi
+done
+printf '\033[0m\n'