Total Complexity | 0 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | #!/usr/bin/env python3 |
||
2 | # -*- coding: utf-8 -*- |
||
3 | |||
4 | # pylint: disable=C0111,C0326,C0103 |
||
5 | |||
6 | """Listing of ANSI colors plus additional Windows support.""" |
||
7 | |||
8 | import platform |
||
9 | |||
10 | # Needed to make ANSI escape sequences work in Windows |
||
11 | SYSTEM = platform.system() |
||
12 | if SYSTEM == "Windows": |
||
13 | try: |
||
14 | import colorama |
||
15 | colorama.init() |
||
16 | except ImportError: |
||
17 | pass |
||
18 | |||
19 | UP_DEL = u"\u001b[F\u001b[K" |
||
20 | BLACK = u"\u001b[0;30m" |
||
21 | RED_DARK = u"\u001b[0;31m" |
||
22 | GREEN_DARK = u"\u001b[0;32m" |
||
23 | YELLOW_DARK = u"\u001b[0;33m" |
||
24 | CYAN_DARK = u"\u001b[0;36m" |
||
25 | SILVER = u"\u001b[0;37m" |
||
26 | GREY = u"\u001b[1;30m" |
||
27 | RED = u"\u001b[1;31m" |
||
28 | GREEN = u"\u001b[1;32m" |
||
29 | YELLOW = u"\u001b[1;33m" |
||
30 | CYAN = u"\u001b[1;36m" |
||
31 | WHITE = u"\u001b[1;37m" |
||
32 | RESET = u"\u001b[0m" |
||
33 |