#!/bin/sh
# http://askubuntu.com/questions/27314/script-to-display-all-terminal-colors
ECHO=/bin/echo
# see man terminfo
# Highlighting, Underlining, and Visible Bells
# example of DEC vt200
NORMAL=0
BOLD=1
UNDERLINE=4
REVERSE=7
for a in ${NORMAL} ${BOLD} ${UNDERLINE} ${REVERSE} ; do
for f in `seq 30 37`; do # foreground
for b in `seq 40 47`; do # background
${ECHO} -ne "\e[$a;$f;$b""m\\\e[$a;$f;$b""m\e[0;37;40m ";
done
${ECHO}
done
${ECHO}
done
${ECHO}