Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MG()
committed
May 17, 2019
1 parent
0e984ec
commit 160606b
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
#!/bin/bash | ||
|
||
################################################################################# | ||
################### COLOR Library - under GPLv3 ################### | ||
################### by Mathias Gut, Netchange Informatik GmbH ################### | ||
################### From the freecybersecurity.org Project ################### | ||
################### Thanks to the community! ################### | ||
################################################################################# | ||
|
||
############### | ||
### COLORS ### | ||
############### | ||
|
||
#Import this as library with | ||
#. colors.sh or | ||
|
||
if [[ $colors -eq 1 ]]; then | ||
cOFF='' | ||
|
||
blON='' | ||
rON='' | ||
gON='' | ||
yON='' | ||
bON='' | ||
mON='' | ||
cON='' | ||
lgrON='' | ||
|
||
dgON='' | ||
lrON='' | ||
lgON='' | ||
lyON='' | ||
lbON='' | ||
lmON='' | ||
lcON='' | ||
wON='' | ||
else | ||
cOFF='\e[39m' #color OFF / Default color | ||
|
||
blON='\e[30m' #black color ON | ||
rON='\e[31m' #red color ON | ||
gON='\e[32m' #green color ON | ||
yON='\e[33m' #yellow color ON | ||
bON='\e[34m' #blue color ON | ||
mON='\e[35m' #magenta color ON | ||
cON='\e[36m' #cyan color ON | ||
lgrON='\e[37m' #light gray ON | ||
|
||
dgON='\e[90m' #dark grey ON | ||
lrON='\e[91m' #light red ON | ||
lgON='\e[92m' #light green ON | ||
lyON='\e[93m' #light yellow ON | ||
lbON='\e[94m' #light blue ON | ||
lmON='\e[95m' #light magenta ON | ||
lcON='\e[96m' #light cyan ON | ||
wON='\e[97m' #white color ON | ||
fi | ||
|
||
################### END ################### |