Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Add color to text in Python script
- # Example to run
- print fcolor.Red + " Hello World"
- class fcolor:
- CReset='\033[0m'
- CBold='\033[1m'
- CDim='\033[2m'
- CUnderline='\033[4m'
- CBlink='\033[5m'
- CInvert='\033[7m'
- CHidden='\033[8m'
- CDebugB='\033[1;90m'
- CDebug='\033[0;90m'
- Black='\033[0;30m'
- Red='\033[0;31m'
- Green='\033[0;32m'
- Yellow='\033[0;33m'
- Blue='\033[0;34m'
- Pink='\033[0;35m'
- Cyan='\033[0;36m'
- White='\033[0;37m'
- SBlack=CReset + '\033[30m'
- SRed=CReset + '\033[31m'
- SGreen=CReset + '\033[32m'
- SYellow=CReset + '\033[33m'
- SBlue=CReset + '\033[34m'
- SPink=CReset + '\033[35m'
- SCyan=CReset + '\033[36m'
- SWhite=CReset + '\033[37m'
- BBlack='\033[1;30m'
- BRed='\033[1;31m'
- BBlue='\033[1;34m'
- BYellow='\033[1;33m'
- BGreen='\033[1;32m'
- BPink='\033[1;35m'
- BCyan='\033[1;36m'
- BWhite='\033[1;37m'
- UBlack='\033[4;30m'
- URed='\033[4;31m'
- UGreen='\033[4;32m'
- UYellow='\033[4;33m'
- UBlue='\033[4;34m'
- UPink='\033[4;35m'
- UCyan='\033[4;36m'
- UWhite='\033[4;37m'
- BUBlack=CBold + '\033[4;30m'
- BURed=CBold + '\033[4;31m'
- BUGreen=CBold + '\033[4;32m'
- BUYellow=CBold + '\033[4;33m'
- BUBlue=CBold + '\033[4;34m'
- BUPink=CBold + '\033[4;35m'
- BUCyan=CBold + '\033[4;36m'
- BUWhite=CBold + '\033[4;37m'
- IGray='\033[0;90m'
- IRed='\033[0;91m'
- IGreen='\033[0;92m'
- IYellow='\033[0;93m'
- IBlue='\033[0;94m'
- IPink='\033[0;95m'
- ICyan='\033[0;96m'
- IWhite='\033[0;97m'
- BIGray='\033[1;90m'
- BIRed='\033[1;91m'
- BIGreen='\033[1;92m'
- BIYellow='\033[1;93m'
- BIBlue='\033[1;94m'
- BIPink='\033[1;95m'
- BICyan='\033[1;96m'
- BIWhite='\033[1;97m'
- BGBlack='\033[40m'
- BGRed='\033[41m'
- BGGreen='\033[42m'
- BGYellow='\033[43m'
- BGBlue='\033[44m'
- BGPink='\033[45m'
- BGCyan='\033[46m'
- BGWhite='\033[47m'
- BGIBlack='\033[100m'
- BGIRed='\033[101m'
- BGIGreen='\033[102m'
- BGIYellow='\033[103m'
- BGIBlue='\033[104m'
- BGIPink='\033[105m'
- BGICyan='\033[106m'
- BGIWhite='\033[107m'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement