#! /bin/sh
echo "Colors:"
tput setaf 0; echo "Black = tput setaf 0 $(tput sgr0) <--- that was black (tput setaf 0)"
tput bold ; tput setaf 0; echo "DarkGrey = tput bold ; tput setaf 0" ; tput sgr0
tput setaf 7; echo "LightGrey = tput setaf 7" ; tput sgr0
tput bold ; tput setaf 7 ; echo "White = tput bold ; tput setaf 7" ; tput sgr0
tput setaf 1 ; echo "Red = tput setaf 1" ; tput sgr0
tput bold ; tput setaf 1 ; echo "LightRed = tput bold ; tput setaf 1" ; tput sgr0
tput setaf 2 ; echo "Green = tput setaf 2" ; tput sgr0
tput bold ; tput setaf 2 ; echo "LightGreen = tput bold ; tput setaf 2" ; tput sgr0
tput setaf 3 ; echo "Brown = tput setaf 3" ; tput sgr0
tput bold ; tput setaf 3 ; echo "Yellow = tput bold ; tput setaf 3" ; tput sgr0
tput setaf 4 ; echo "Blue = tput setaf 4" ; tput sgr0
tput bold ; tput setaf 4 ; echo "LightBlue = tput bold ; tput setaf 4" ; tput sgr0
tput setaf 5 ; echo "Purple = tput setaf 5" ; tput sgr0
tput bold ; tput setaf 5 ; echo "Pink = tput bold ; tput setaf 5" ; tput sgr0
tput setaf 6 ; echo "Cyan = tput setaf 6" ; tput sgr0
tput bold ; tput setaf 6 ; echo "LightCyan = tput bold ; tput setaf 6" ; tput sgr0
tput sgr0 ; echo "Normal = tput sgr0" ; tput sgr0
echo
echo "Backgrounds:"
tput setab 0 ; echo -n "BlackBG = tput setab 0" ; tput setab 0 ; echo
tput setab 7 ; tput setaf 0; echo -n "LightGreyBG = tput setab 7" ; tput sgr0 ; tput setab 0 ; echo # used black text
tput setab 1 ; echo -n "RedBG = tput setab 1" ; tput setab 0 ; echo
tput setaf 0 # switch to black text for these
tput setab 2 ; echo -n "GreenBG = tput setab 2" ; tput setab 0 ; echo
tput setab 3 ; echo -n "BrownBG = tput setab 3" ; tput setab 0 ; echo
tput setab 4 ; echo -n "BlueBG = tput setab 4" ; tput setab 0 ; echo
tput setab 5 ; echo -n "PurpleBG = tput setab 5" ; tput setab 0 ; echo
tput setab 6 ; echo -n "CyanBG = tput setab 6" ; tput setab 0 ; echo
tput sgr0 # back to normal text
iPhone and Linux
Wednesday, February 24, 2010
How pretty
I've never fooled around with colors in the shell before.