summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-06-14 10:40:38 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-06-14 10:40:38 +0200
commita3a16705841f7af375f8a7000649fcf289213116 (patch)
tree16253f4777092bd47257e863ec98d5c0d944c4e6
parent9042d78d0eee1cbf72f74c3c37328208e03791c7 (diff)
downloadbin-a3a16705841f7af375f8a7000649fcf289213116.zip
bin-a3a16705841f7af375f8a7000649fcf289213116.tar.gz
add colors
-rwxr-xr-xcolors27
1 files changed, 27 insertions, 0 deletions
diff --git a/colors b/colors
new file mode 100755
index 0000000..418d171
--- /dev/null
+++ b/colors
@@ -0,0 +1,27 @@
+#! /bin/sh
+
+RESET="\033[0m"
+BLACK="\033[0;30m"
+RED="\033[0;31m"
+GREEN="\033[0;32m"
+BROWN="\033[0;33m"
+BLUE="\033[0;34m"
+PURPLE="\033[0;35m"
+CYAN="\033[0;36m"
+GRAY="\033[0;37m"
+
+DARK_GRAY="\033[1;37m"
+LIGHT_RED="\033[1;31m"
+LIGHT_GREEN="\033[1;32m"
+YELLOW="\033[1;33m"
+LIGHT_BLUE="\033[1;34m"
+LIGHT_PURPLE="\033[1;35m"
+LIGHT_CYAN="\033[1;36m"
+WHITE="\033[1;37m"
+
+function show_colors () {
+ for color in $BLACK $RED $GREEN $BROWN $BLUE $PURPLE $CYAN $GRAY \
+ $DARK_GRAY $LIGHT_RED $LIGHT_GREEN $YELLOW $LIGHT_BLUE $LIGHT_PURPLE $LIGHT_CYAN $WHITE; do
+ echo -e ">${color}test${RESET}<"
+ done
+}