Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python print colored text

#colors
ResetAll = "33[0m"

Bold       = "33[1m"
Dim        = "33[2m"
Underlined = "33[4m"
Blink      = "33[5m"
Reverse    = "33[7m"
Hidden     = "33[8m"

ResetBold       = "33[21m"
ResetDim        = "33[22m"
ResetUnderlined = "33[24m"
ResetBlink      = "33[25m"
ResetReverse    = "33[27m"
ResetHidden     = "33[28m"

Default      = "33[39m"
Black        = "33[30m"
Red          = "33[31m"
Green        = "33[32m"
Yellow       = "33[33m"
Blue         = "33[34m"
Magenta      = "33[35m"
Cyan         = "33[36m"
LightGray    = "33[37m"
DarkGray     = "33[90m"
LightRed     = "33[91m"
LightGreen   = "33[92m"
LightYellow  = "33[93m"
LightBlue    = "33[94m"
LightMagenta = "33[95m"
LightCyan    = "33[96m"
White        = "33[97m"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #print #colored #text
ADD COMMENT
Topic
Name
5+8 =