MCPcopy Index your code
hub / github.com/python/mypy / initialize_vt100_colors

Method initialize_vt100_colors

mypy/util.py:640–652  ·  view source on GitHub ↗

Return True if initialization was successful and we can use colors, False otherwise

(self)

Source from the content-addressed store, hash-verified

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"""

Callers 2

__init__Method · 0.95
initialize_win_colorsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected