Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python color text console

class bcolors:
    HEADER = '33[95m'
    OKBLUE = '33[94m'
    OKCYAN = '33[96m'
    OKGREEN = '33[92m'
    WARNING = '33[93m'
    FAIL = '33[91m'
    ENDC = '33[0m'
    BOLD = '33[1m'
    UNDERLINE = '33[4m'
    
print(f"{bcolors.WARNING}Warning: Example. Continue?{bcolors.ENDC}")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #color #text #console
ADD COMMENT
Topic
Name
3+9 =