In this tutorial i will be showing you guys, The different color codes/tags that you can use to spice up your bash scripts/terminal on xShellz shell (paid/free)
Foreground Colors (text)
Red - 31 # echo -e "Text color is \e[31mRed"
Green - 32 # echo -e "Text color is \e[32mGreen"
Yellow - 33 # echo -e "Text color is \e[33mYellow"
Blue - 34 # echo -e "Text color is \e[34mBlue"
Magneta - 35 # echo -e "Text color is \e[35mMagneta"
Cyan - 36 # echo -e "Text color is \e[36mCyan"
Light Grey - 37 # echo -e "Text color is \e[37mLight Grey"
Dark Grey - 90 # echo -e "Text color is \e[90mDark Grey"
Light Red - 91 # echo -e "Text color is \e[91mLight Red"
Light Green - 92 # echo -e "Text color is \e[92mLight Green"
Light Yellow - 93 # echo -e "Text color is \e[93mLight Yellow"
Light Blue - 94 # echo -e "Text color is \e[94mLight Blue"
Light Magneta - 95 # echo -e "Text color is \e[95mLight Magneta"
Light Cyan - 96 # echo -e "Text color is \e[96mLight Cyan"
White - 97 # echo -e "Text color is \e[97mWhite"
Background Colors
Black - 40 # echo -e "Background color is \e[40mBlack"
Red- 41 # echo -e "Background color is \e[41mRed"
Green - 42 # echo -e "Background color is \e[42mGreen"
Yellow - 43 # echo -e "Background color is \e[43Yellow"
Blue - 44 # echo -e "Background color is \e[44Blue"
Magneta - 45 # echo -e "Background color is \e[45Magneta"
Cyan - 46 # echo -e "Background color is \e[46mCyan"
Light Grey - 47 # echo -e "Background color is \e[47mLight Grey"
Dark Grey - 100 # echo -e "Background color is \e[100mDark Grey"
Light Red - 101 # echo -e "Background color is \e[101mLight Red"
Light Green - 102 # echo -e "Background color is \e[102mLight Green"
Light Yellow - 103 # echo -e "Background color is \e[103Light Yellow"
Light Blue - 104 # echo -e "Background color is \e[104Light Blue"
Light Magneta - 105 # echo -e "Background color is \e[105mLight Magneta"
Light Cyan - 106 # echo -e "Background color is \e[106mLight Cyan"
White - 107 # echo -e "Background color is \e[107mWhite"
88/256 Colors (text)
Example:
echo -e "\e[38;5;82mHello \e[38;5;198mWorld"
88/256 Colors (background)
Example:
echo -e "\e[40;38;5;82m Hello \e[30;48;5;82m World \e[0m"
Have Doubts/Questions? Please comment down below on the post or email me at BLinuxYT[at]outlook.com
Please Login or Sign Up to leave a reply.