code: def set_color_scheme(self, foreground_color, background_color):
          
          self.ansi_handler.set_color_scheme(foreground_color, background_color)
  
          background_color = QColor(background_color)
          foreground_color = QColor(foreground_color)
  
          self.set_palette(background=background_color,
                           foreground=foreground_color)
  
          self.set_pythonshell_font()
docs: Set color scheme of the console (foreground and background).