Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash colors

# Reset
Color_Off='33[0m'       # Text Reset

# Regular Colors
Black='33[0;30m'        # Black
Red='33[0;31m'          # Red
Green='33[0;32m'        # Green
Yellow='33[0;33m'       # Yellow
Blue='33[0;34m'         # Blue
Purple='33[0;35m'       # Purple
Cyan='33[0;36m'         # Cyan
White='33[0;37m'        # White

# Bold
BBlack='33[1;30m'       # Black
BRed='33[1;31m'         # Red
BGreen='33[1;32m'       # Green
BYellow='33[1;33m'      # Yellow
BBlue='33[1;34m'        # Blue
BPurple='33[1;35m'      # Purple
BCyan='33[1;36m'        # Cyan
BWhite='33[1;37m'       # White

# Underline
UBlack='33[4;30m'       # Black
URed='33[4;31m'         # Red
UGreen='33[4;32m'       # Green
UYellow='33[4;33m'      # Yellow
UBlue='33[4;34m'        # Blue
UPurple='33[4;35m'      # Purple
UCyan='33[4;36m'        # Cyan
UWhite='33[4;37m'       # White

# Background
On_Black='33[40m'       # Black
On_Red='33[41m'         # Red
On_Green='33[42m'       # Green
On_Yellow='33[43m'      # Yellow
On_Blue='33[44m'        # Blue
On_Purple='33[45m'      # Purple
On_Cyan='33[46m'        # Cyan
On_White='33[47m'       # White

# High Intensity
IBlack='33[0;90m'       # Black
IRed='33[0;91m'         # Red
IGreen='33[0;92m'       # Green
IYellow='33[0;93m'      # Yellow
IBlue='33[0;94m'        # Blue
IPurple='33[0;95m'      # Purple
ICyan='33[0;96m'        # Cyan
IWhite='33[0;97m'       # White

# Bold High Intensity
BIBlack='33[1;90m'      # Black
BIRed='33[1;91m'        # Red
BIGreen='33[1;92m'      # Green
BIYellow='33[1;93m'     # Yellow
BIBlue='33[1;94m'       # Blue
BIPurple='33[1;95m'     # Purple
BICyan='33[1;96m'       # Cyan
BIWhite='33[1;97m'      # White

# High Intensity backgrounds
On_IBlack='33[0;100m'   # Black
On_IRed='33[0;101m'     # Red
On_IGreen='33[0;102m'   # Green
On_IYellow='33[0;103m'  # Yellow
On_IBlue='33[0;104m'    # Blue
On_IPurple='33[0;105m'  # Purple
On_ICyan='33[0;106m'    # Cyan
On_IWhite='33[0;107m'   # White
Comment

Bash colour codes

BLACK=$(tput setaf 0)
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
YELLOW=$(tput setaf 3)
LIME_YELLOW=$(tput setaf 190)
POWDER_BLUE=$(tput setaf 153)
BLUE=$(tput setaf 4)
MAGENTA=$(tput setaf 5)
CYAN=$(tput setaf 6)
WHITE=$(tput setaf 7)
BRIGHT=$(tput bold)
NORMAL=$(tput sgr0)
BLINK=$(tput blink)
REVERSE=$(tput smso)
UNDERLINE=$(tput smul)
Comment

bash colors

# Reset
Color_Off='33[0m'       # Text Reset

# Regular Colors
Black='33[0;30m'        # Black
Red='33[0;31m'          # Red
Green='33[0;32m'        # Green
Yellow='33[0;33m'       # Yellow
Blue='33[0;34m'         # Blue
Purple='33[0;35m'       # Purple
Cyan='33[0;36m'         # Cyan
White='33[0;37m'        # White

# Bold
BBlack='33[1;30m'       # Black
BRed='33[1;31m'         # Red
BGreen='33[1;32m'       # Green
BYellow='33[1;33m'      # Yellow
BBlue='33[1;34m'        # Blue
BPurple='33[1;35m'      # Purple
BCyan='33[1;36m'        # Cyan
BWhite='33[1;37m'       # White

# Underline
UBlack='33[4;30m'       # Black
URed='33[4;31m'         # Red
UGreen='33[4;32m'       # Green
UYellow='33[4;33m'      # Yellow
UBlue='33[4;34m'        # Blue
UPurple='33[4;35m'      # Purple
UCyan='33[4;36m'        # Cyan
UWhite='33[4;37m'       # White

# Background
On_Black='33[40m'       # Black
On_Red='33[41m'         # Red
On_Green='33[42m'       # Green
On_Yellow='33[43m'      # Yellow
On_Blue='33[44m'        # Blue
On_Purple='33[45m'      # Purple
On_Cyan='33[46m'        # Cyan
On_White='33[47m'       # White

# High Intensity
IBlack='33[0;90m'       # Black
IRed='33[0;91m'         # Red
IGreen='33[0;92m'       # Green
IYellow='33[0;93m'      # Yellow
IBlue='33[0;94m'        # Blue
IPurple='33[0;95m'      # Purple
ICyan='33[0;96m'        # Cyan
IWhite='33[0;97m'       # White

# Bold High Intensity
BIBlack='33[1;90m'      # Black
BIRed='33[1;91m'        # Red
BIGreen='33[1;92m'      # Green
BIYellow='33[1;93m'     # Yellow
BIBlue='33[1;94m'       # Blue
BIPurple='33[1;95m'     # Purple
BICyan='33[1;96m'       # Cyan
BIWhite='33[1;97m'      # White

# High Intensity backgrounds
On_IBlack='33[0;100m'   # Black
On_IRed='33[0;101m'     # Red
On_IGreen='33[0;102m'   # Green
On_IYellow='33[0;103m'  # Yellow
On_IBlue='33[0;104m'    # Blue
On_IPurple='33[0;105m'  # Purple
On_ICyan='33[0;106m'    # Cyan
On_IWhite='33[0;107m'   # White
Comment

Bash colour codes

BLACK=$(tput setaf 0)
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
YELLOW=$(tput setaf 3)
LIME_YELLOW=$(tput setaf 190)
POWDER_BLUE=$(tput setaf 153)
BLUE=$(tput setaf 4)
MAGENTA=$(tput setaf 5)
CYAN=$(tput setaf 6)
WHITE=$(tput setaf 7)
BRIGHT=$(tput bold)
NORMAL=$(tput sgr0)
BLINK=$(tput blink)
REVERSE=$(tput smso)
UNDERLINE=$(tput smul)
Comment

PREVIOUS NEXT
Code Example
Shell :: nodemon use 
Shell :: how to install prettier globally on mac 
Shell :: ssh to k8s pod 
Shell :: kubernetes delete all from namespace 
Shell :: composer install mac 
Shell :: linux unrar multiple files 
Shell :: ghost in the shell 
Shell :: dpkg-buildpackage: error: fakeroot debian/rules clean subprocess returned exit status 2 
Shell :: java to jar 
Shell :: navigation in react native 
Shell :: discord unexpected token = 
Shell :: copy folder from ssh to local 
Shell :: bash single vs double quotes 
Shell :: node global install 
Shell :: how to uninstall software from ubuntu 
Shell :: delete tag beautifulsoup 
Shell :: phpcs diferent xml 
Shell :: delete file linux terminal 
Shell :: git unstage file from add 
Shell :: how to open .bin file in linux 
Shell :: How install packages from package.tar.gz on rstudio 
Shell :: ls bs date 
Shell :: adobe reader linux 
Shell :: clone specific branch git 
Shell :: docker-compose build context tag own name 
Shell :: rpi install chomedriver 
Shell :: installing redis on mac 
Shell :: display/search for a commit hash name in a git log 
Shell :: linux list user groups 
Shell :: how to unzip using tar 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =