Return True if initialization was successful and we can use colors, False otherwise
(self)
| 638 | } |
| 639 | |
| 640 | def initialize_vt100_colors(self) -> bool: |
| 641 | """Return True if initialization was successful and we can use colors, False otherwise""" |
| 642 | # Windows and Emscripten can both use ANSI/VT100 escape sequences for color |
| 643 | assert sys.platform in ("win32", "emscripten") |
| 644 | self.BOLD = "\033[1m" |
| 645 | self.UNDER = "\033[4m" |
| 646 | self.BLUE = "\033[94m" |
| 647 | self.GREEN = "\033[92m" |
| 648 | self.RED = "\033[91m" |
| 649 | self.YELLOW = "\033[93m" |
| 650 | self.NORMAL = "\033[0m" |
| 651 | self.DIM = "\033[2m" |
| 652 | return True |
| 653 | |
| 654 | def initialize_win_colors(self) -> bool: |
| 655 | """Return True if initialization was successful and we can use colors, False otherwise""" |
no outgoing calls
no test coverage detected