    def refresh(self):
        """
        Flush the canvas content to the underlying screen.
        """
        self._screen.block_transfer(self._buffer, self._dx, self._dy)
Flush the canvas content to the underlying screen.
asciimatics/screen.py