summaryrefslogtreecommitdiff
path: root/color-test
blob: 4f30a0e97d7f25b791505be57e83cdefd049df96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash 
reset=`tput sgr0`
c=`tput sgr0; tput setaf 0`;echo "-black-${c}testTEST${reset}"
c=`tput sgr0; tput setaf 1`;echo "-red-${c}testTEST${reset}"
c=`tput sgr0; tput setaf 2`;echo "-green-${c}testTEST${reset}"
c=`tput sgr0; tput setaf 3`;echo "-yellow-${c}testTEST${reset}"
c=`tput sgr0; tput setaf 4`;echo "-blue-${c}testTEST${reset}"
c=`tput sgr0; tput setaf 5`;echo "-magenta-${c}testTEST${reset}"
c=`tput sgr0; tput setaf 6`;echo "-cyan-${c}testTEST${reset}"
c=`tput sgr0; tput setaf 7`;echo "-white-${c}testTEST${reset}"
 
c=`tput setaf 0; tput bold`;echo "-BLACK-${c}testTEST${reset}"
c=`tput setaf 1; tput bold`;echo "-RED-${c}testTEST${reset}"
c=`tput setaf 2; tput bold`;echo "-GREEN-${c}testTEST${reset}"
c=`tput setaf 3; tput bold`;echo "-YELLOW-${c}testTEST${reset}"
c=`tput setaf 4; tput bold`;echo "-BLUE-${c}testTEST${reset}"
c=`tput setaf 5; tput bold`;echo "-MAGENTA-${c}testTEST${reset}"
c=`tput setaf 6; tput bold`  # why 14 doesn't work?;echo "-CYAN-${c}testTEST${reset}" 
c=`tput setaf 7; tput bold`;echo "-WHITE-${c}testTEST${reset}"