Skip to content

Instantly share code, notes, and snippets.

@TheBigRoomXXL
Created October 3, 2024 13:25
Show Gist options
  • Save TheBigRoomXXL/09878e8112c56d865c54f552b61b9013 to your computer and use it in GitHub Desktop.
Save TheBigRoomXXL/09878e8112c56d865c54f552b61b9013 to your computer and use it in GitHub Desktop.
Simple colorfull print in python
class c:
"""Terminal espcape sequences for colors"""
OK = "\033[92m"
WARN = "\033[93m"
END = "\033[0m"
# Examples
print(c.OK, "This is a success message", c.END)
print(c.WARN, "This is a warning", c.END)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment