Skip to content

Commit

Permalink
BETA 0.6.2_1
Browse files Browse the repository at this point in the history
  • Loading branch information
MG() committed May 17, 2019
1 parent 0e984ec commit 160606b
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions libraries/bash/colors.sh
@@ -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 ###################

0 comments on commit 160606b

Please sign in to comment.