code: def SetConsoleColor(color: int) -> bool:
      
      global _ConsoleOutputHandle
      global _DefaultConsoleColor
      if not _DefaultConsoleColor:
          if not _ConsoleOutputHandle:
              _ConsoleOutputHandle = ctypes.windll.kernel32.GetStdHandle(_StdOutputHandle)
          bufferInfo = ConsoleScreenBufferInfo()
          ctypes.windll.kernel32.GetConsoleScreenBufferInfo(_ConsoleOutputHandle, ctypes.byref(bufferInfo))
          _DefaultConsoleColor = int(bufferInfo.wAttributes & 0xFF)
      if sys.stdout:
          sys.stdout.flush()
      bool(ctypes.windll.kernel32.SetConsoleTextAttribute(_ConsoleOutputHandle, color))
docs: Change the text color on console window.
      color: int, a value in class `ConsoleColor`.
      Return bool, True if succeed otherwise False.