code: def console_rect(
      con: tcod.console.Console,
      x: int,
      y: int,
      w: int,
      h: int,
      clr: bool,
      flag: int = BKGND_DEFAULT,
  ) -> None:
      
      lib.TCOD_console_rect(_console(con), x, y, w, h, clr, flag)
docs: Draw a the background color on a rect optionally clearing the text.
  
      If clr is True the affected tiles are changed to space character.
  
      .. deprecated:: 8.5
          Use :any:`Console.rect` instead.