summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@server-speed.net>2011-04-17 10:32:14 +0200
committerFlorian Pritz <bluewind@server-speed.net>2011-04-17 10:32:14 +0200
commit1cff155acfda9e1ca0b06653897dbb9bcde0a3dd (patch)
treef4c02accf84c23a323daebc2c932a2e9699e79fa
parent2b3616cbe01229996013bd517d162af190d688b9 (diff)
downloadbin-1cff155acfda9e1ca0b06653897dbb9bcde0a3dd.tar.gz
bin-1cff155acfda9e1ca0b06653897dbb9bcde0a3dd.tar.xz
256colors.sh: add colors 1-15
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
-rwxr-xr-x256colors.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/256colors.sh b/256colors.sh
index 5967093..860b1cd 100755
--- a/256colors.sh
+++ b/256colors.sh
@@ -2,7 +2,10 @@
echo '^[[38;5;${i}m'
-for i in {16..255}; do
- echo -en "\e[38;5;${i}mColor $i\t"
- [ $((++j%6)) -eq 0 ] && echo
+for i in {01..255}; do
+ echo -en "\e[38;5;${i}mColor $i\t"
+ if [ $i -eq 15 ]; then
+ j=5
+ fi
+ [ $((++j%6)) -eq 0 ] && echo
done