code: def print_(
          self,
          x: int,
          y: int,
          string: str,
          bg_blend: int = tcod.constants.BKGND_DEFAULT,
          alignment: Optional[int] = None,
      ) -> None:
          
          self.__deprecate_defaults("print", bg_blend, alignment)
          alignment = self.default_alignment if alignment is None else alignment
          lib.TCOD_console_printf_ex(
              self.console_c, x, y, bg_blend, alignment, _fmt(string)
          )
docs: Print a color formatted string on a console.
  
          Args:
              x (int): The x coordinate from the left.
              y (int): The y coordinate from the top.
              string (str): A Unicode string optionally using color codes.
              bg_blend (int): Blending mode to use, defaults to BKGND_DEFAULT.
              alignment (Optional[int]): Text alignment.
  
          .. deprecated:: 8.5
              Console methods which depend on console defaults have been
              deprecated.
              Use :any:`Console.print` instead, calling this function will print
              a warning detailing which default values need to be made explicit.