code: def console_print_frame(
      con: tcod.console.Console,
      x: int,
      y: int,
      w: int,
      h: int,
      clear: bool = True,
      flag: int = BKGND_DEFAULT,
      fmt: str = "",
  ) -> None:
      
      fmt = _fmt(fmt) if fmt else ffi.NULL
      lib.TCOD_console_printf_frame(_console(con), x, y, w, h, clear, flag, fmt)
docs: Draw a framed rectangle with optinal text.
  
      This uses the default background color and blend mode to fill the
      rectangle and the default foreground to draw the outline.
  
      `fmt` will be printed on the inside of the rectangle, word-wrapped.
      If `fmt` is empty then no title will be drawn.
  
      .. versionchanged:: 8.2
          Now supports Unicode strings.
  
      .. deprecated:: 8.5
          Use :any:`Console.print_frame` instead.