Created
August 31, 2017 14:03
-
-
Save amdelamar/b24733ff95620c4017ab749cf945f0d8 to your computer and use it in GitHub Desktop.
Console Colors
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
@echo off | |
cls | |
echo [101;93m STYLES [0m | |
echo ^<ESC^>[0m [0mReset[0m | |
echo ^<ESC^>[1m [1mBold[0m | |
echo ^<ESC^>[4m [4mUnderline[0m | |
echo ^<ESC^>[7m [7mInverse[0m | |
echo. | |
echo [101;93m NORMAL FOREGROUND COLORS [0m | |
echo ^<ESC^>[30m [30mBlack[0m (black) | |
echo ^<ESC^>[31m [31mRed[0m | |
echo ^<ESC^>[32m [32mGreen[0m | |
echo ^<ESC^>[33m [33mYellow[0m | |
echo ^<ESC^>[34m [34mBlue[0m | |
echo ^<ESC^>[35m [35mMagenta[0m | |
echo ^<ESC^>[36m [36mCyan[0m | |
echo ^<ESC^>[37m [37mWhite[0m | |
echo. | |
echo [101;93m NORMAL BACKGROUND COLORS [0m | |
echo ^<ESC^>[40m [40mBlack[0m | |
echo ^<ESC^>[41m [41mRed[0m | |
echo ^<ESC^>[42m [42mGreen[0m | |
echo ^<ESC^>[43m [43mYellow[0m | |
echo ^<ESC^>[44m [44mBlue[0m | |
echo ^<ESC^>[45m [45mMagenta[0m | |
echo ^<ESC^>[46m [46mCyan[0m | |
echo ^<ESC^>[47m [47mWhite[0m (white) | |
echo. | |
echo [101;93m STRONG FOREGROUND COLORS [0m | |
echo ^<ESC^>[90m [90mWhite[0m | |
echo ^<ESC^>[91m [91mRed[0m | |
echo ^<ESC^>[92m [92mGreen[0m | |
echo ^<ESC^>[93m [93mYellow[0m | |
echo ^<ESC^>[94m [94mBlue[0m | |
echo ^<ESC^>[95m [95mMagenta[0m | |
echo ^<ESC^>[96m [96mCyan[0m | |
echo ^<ESC^>[97m [97mWhite[0m | |
echo. | |
echo [101;93m STRONG BACKGROUND COLORS [0m | |
echo ^<ESC^>[100m [100mBlack[0m | |
echo ^<ESC^>[101m [101mRed[0m | |
echo ^<ESC^>[102m [102mGreen[0m | |
echo ^<ESC^>[103m [103mYellow[0m | |
echo ^<ESC^>[104m [104mBlue[0m | |
echo ^<ESC^>[105m [105mMagenta[0m | |
echo ^<ESC^>[106m [106mCyan[0m | |
echo ^<ESC^>[107m [107mWhite[0m | |
echo. | |
echo [101;93m COMBINATIONS [0m | |
echo ^<ESC^>[31m [31mred foreground color[0m | |
echo ^<ESC^>[7m [7minverse foreground ^<-^> background[0m | |
echo ^<ESC^>[7;31m [7;31minverse red foreground color[0m | |
echo ^<ESC^>[7m and nested ^<ESC^>[31m [7mbefore [31mnested[0m | |
echo ^<ESC^>[31m and nested ^<ESC^>[7m [31mbefore [7mnested[0m |
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
#!/usr/bin/env sh | |
BLK='\x1B[0;30m' # Black | |
DGR='\x1B[1;30m' # Dark Gray | |
RED='\x1B[0;31m' # Red | |
LR='\x1B[1;31m' # Light Red | |
GRN='\x1B[0;32m' # Green | |
LG='\x1B[1;32m' # Light Green | |
YLW='\x1B[0;33m' # Yellow | |
LY='\x1B[1;33m' # Light Yellow | |
BLU='\x1B[0;34m' # Blue | |
LB='\x1B[1;34m' # Light Blue | |
PP='\x1B[0;35m' # Purple | |
LPP='\x1B[1;35m' # Light Purple | |
CYN='\x1B[0;36m' # Cyan | |
LC='\x1B[1;36m' # Light Cyan | |
LGR='\x1B[0;37m' # Light Gray | |
WHT='\x1B[1;37m' # White | |
NO='\x1B[0m' # No Color | |
echo -e "${BLK}Black Color${NO}" | |
echo -e "${DGR}Dark Gray Color${NO}" | |
echo -e "${RED}Red Color${NO}" | |
echo -e "${LR}Light Red Color${NO}" | |
echo -e "${GRN}Green Color${NO}" | |
echo -e "${LG}Light Green Color${NO}" | |
echo -e "${YLW}Yellow Color${NO}" | |
echo -e "${LY}Light Yellow Color${NO}" | |
echo -e "${BLU}Blue Color${NO}" | |
echo -e "${LB}Light Blue Color${NO}" | |
echo -e "${PP}Purple Color${NO}" | |
echo -e "${LPP}Light Purple Color${NO}" | |
echo -e "${CYN}Cyan Color${NO}" | |
echo -e "${LC}Light Cyan Color${NO}" | |
echo -e "${LGR}Light Gray Color${NO}" | |
echo -e "${WHT}White Color${NO}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment