Created
March 15, 2016 19:11
-
-
Save Verurteilt/6a01510084a79132d1f1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # encoding: utf-8 | |
| class Color(object): | |
| HEADER = '\033[95m' | |
| OKBLUE = '\033[94m' | |
| OKGREEN = '\033[92m' | |
| WARNING = '\033[93m' | |
| FAIL = '\033[91m' | |
| ENDC = '\033[0m' | |
| def colorear(txt, color=None): | |
| color = not color and Color.FAIL or color | |
| return '%s%s%s' % (color, txt, Color.ENDC) | |
| colorear = staticmethod(colorear) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment