From 14428b181601070fb0aa79a8402532c0e774a3a7 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 22 Apr 2014 19:19:47 -0400 Subject: also show 256color stuff --- bin/show_colors | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bin/show_colors') 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' -- cgit v1.2.3-54-g00ecf