code: def reset_attributes(self):
          " Reset the console foreground/background color. "
          self._winapi(windll.kernel32.SetConsoleTextAttribute, self.hconsole,
                       self.default_attrsf reset_attributes(self):
          " Reset the console foreground/background color. "
          self._winapi(windll.kernel32.SetConsoleTextAttribute, self.hconsole,
                       self.default_attrs)
docs: Reset the console foreground/background color.