blob: f83f100ba8d50ece63149b0d3395397604f6e41d (
plain) (
blame)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# colours
# usage:
# printf "${fg_red}RED TEXT${nc_}"
# printf "${fg_}196mRED TEXT{nc_}"
fg_black='\033[0;30m'
fg_red='\033[0;31m'
fg_green='\033[0;32m'
fg_orange='\033[0;33m'
fg_blue='\033[0;34m'
fg_purple='\033[0;35m'
fg_cyan='\033[0;36m'
fg_lightgray='\033[0;37m'
fg_darkgray='\033[1;38m'
fg_lightred='\033[1;31m'
fg_lightgreen='\033[1;32m'
fg_yellow='\033[1;33m'
fg_lightblue='\033[1;34m'
fg_lightpurple='\033[1;35m'
fg_lightcyan='\033[1;36m'
fg_white='\033[1;36m'
bg_black='\033[0;40m'
bg_red='\033[0;41m'
bg_green='\033[0;42m'
bg_orange='\033[0;43m'
bg_blue='\033[0;44m'
bg_purple='\033[0;45m'
bg_cyan='\033[0;46m'
bg_lightgray='\033[0;47m'
bg_darkgray='\033[1;40m'
bg_lightred='\033[1;41m'
bg_lightgreen='\033[1;42m'
bg_yellow='\033[1;43m'
bg_lightblue='\033[1;44m'
bg_lightpurple='\033[1;45m'
bg_lightcyan='\033[1;46m'
bg_white='\033[1;47m'
nc_='\033[0;0m' # end color
# 256 colours ex. fg_#208m
fg_='\033[38;5;' # add 'm' after the colour number
bg_='\033[48;5;' # add 'm' after the colour number
|