code: def create_color_method(color, code):
      
  
      def func(self, content=''):
          return self._apply_color(code, content)  # pylint: disable=protected-access
  
      setattr(Terminal, color, func)
docs: Create a function for the given color
      Done inside this function to keep the variables out of the main scope