summaryrefslogtreecommitdiff
path: root/color-test
diff options
context:
space:
mode:
Diffstat (limited to 'color-test')
-rw-r--r--color-test19
1 files changed, 19 insertions, 0 deletions
diff --git a/color-test b/color-test
new file mode 100644
index 0000000..4f30a0e
--- /dev/null
+++ b/color-test
@@ -0,0 +1,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}"