#!/bin/bash
# show colors (version 2)
FG='30 31 32 33 34 35 36 37'
BG='40 41 42 43 44 45 46 47'
taolove=' taolove '
love=' love '
echo
# Row Title
echo -n " "
for i in $FG ; do
echo -n " ${i} "
done
echo
# Row Title Line
echo -n "== "
for i in $FG ; do
echo -n " ========"
done
echo
# Color Map
for i in $BG ; do
echo -n "${i} "
for j in $FG ; do
echo -ne "\e[${j};${i}m${taolove}"
done
echo -e '\e[0m'
echo -ne " "
for j in $FG ; do
echo -ne "\e[${j};${i};1m${yanling}"
done
echo -e '\e[0m'
done
echo
echo -e "\033[42;30m taoloveyanling \033[0m"
echo -e "\e[41;36m taoloveyanling \e[0m"