    def clear_buffer(self, fg, attr, bg, x=0, y=0, w=None, h=None):
        """
        Clear a box in the current double-buffer used by this object.

        This is the recommended way to clear parts, or all, ofthe Screen without causing flicker
        as it will only become visible at the next refresh.  Defaults to the whole buffer if no
        box is specified.

        :param fg: The foreground colour to use for the new buffer.
        :param attr: The attribute value to use for the new buffer.
        :param bg: The background colour to use for the new buffer.
        :param x: Optional X coordinate for top left of box.
        :param y: Optional Y coordinate for top left of box.
        :param w: Optional width of the box.
        :param h: Optional height of the box.
        """
        self._buffer.clear(fg, attr, bg, x, y, w, h)
Clear a box in the current double-buffer used by this object.

This is the recommended way to clear parts, or all, ofthe Screen without causing flicker
as it will only become visible at the next refresh.  Defaults to the whole buffer if no
box is specified.

:param fg: The foreground colour to use for the new buffer.
:param attr: The attribute value to use for the new buffer.
:param bg: The background colour to use for the new buffer.
:param x: Optional X coordinate for top left of box.
:param y: Optional Y coordinate for top left of box.
:param w: Optional width of the box.
:param h: Optional height of the box.
asciimatics/screen.py