Skip to content

Instantly share code, notes, and snippets.

@josephsamela
Created June 8, 2021 02:21
Show Gist options
  • Save josephsamela/ae4f2ef5e4b4f279cf6ceb71dd3c9c78 to your computer and use it in GitHub Desktop.
Save josephsamela/ae4f2ef5e4b4f279cf6ceb71dd3c9c78 to your computer and use it in GitHub Desktop.
# Print with colors exmaple
class color:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKCYAN = '\033[96m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
LIGHT = '\033[2m'
ITALIC = '\033[3m'
UNDERLINE = '\033[4m'
BLINK = '\033[5m'
T6 = '\033[6m'
HIGHLIGHT = '\033[7m'
HIDDEN = '\033[8m'
STRIKETHROUGH = '\033[9m'
print(color.HEADER + "Warning: No active frommets remain. Continue?" + color.ENDC)
print(color.OKBLUE + "Warning: No active frommets remain. Continue?" + color.ENDC)
print(color.OKCYAN + "Warning: No active frommets remain. Continue?" + color.ENDC)
print(color.OKGREEN + "Warning: No active frommets remain. Continue?" + color.ENDC)
print(color.WARNING + "Warning: No active frommets remain. Continue?" + color.ENDC)
print(color.FAIL + "Warning: No active frommets remain. Continue?" + color.ENDC)
print(color.BOLD + "Warning: No active frommets remain. Continue?" + color.ENDC)
print(color.UNDERLINE + "Warning: No active frommets remain. Continue?" + color.ENDC)
print(color.ITALIC + "Warning: No active frommets remain. Continue?" + color.ENDC)
print(color.LIGHT + "Warning: No active frommets remain. Continue?" + color.ENDC)
print(color.BLINK + "Warning: No active frommets remain. Continue?" + color.ENDC)
print(color.HIGHLIGHT + "Warning: No active frommets remain. Continue?" + color.ENDC)
print(color.HIDDEN + "Warning: No active frommets remain. Continue?" + color.ENDC)
print(color.STRIKETHROUGH + "Warning: No active frommets remain. Continue?" + color.ENDC)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment