summaryrefslogtreecommitdiffstats
path: root/colors
blob: 418d17197cd613a47c06eb623c1b305a26634550 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
}