summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>2010-03-15 11:28:50 +0000
committerGianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>2010-03-15 11:28:50 +0000
commita2f23039204eeaab97654078c0cf99a3b13a756a (patch)
tree319797a4385949deaeaaa9ead6f7e7e5ae70b4b2
parentmy mods (diff)
downloadgit-prompt-a2f23039204eeaab97654078c0cf99a3b13a756a.tar.gz
git-prompt-a2f23039204eeaab97654078c0cf99a3b13a756a.tar.bz2
git-prompt-a2f23039204eeaab97654078c0cf99a3b13a756a.zip
test script for colors
-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}"