diff options
Diffstat (limited to 'colors')
-rwxr-xr-x | colors | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -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 +} |