code: def set_console(stream=STDOUT, foreground=None, background=None, style=None):
      
      if foreground is None:
          foreground = _default_foreground
      if background is None:
          background = _default_background
      if style is None:
          style = _default_style
      attrs = get_attrs(foreground, background, style)
      SetConsoleTextAttribute(stream, attrs)
docs: Set console foreground and background attributes.