code: def _clear(self):
          
          # It's orders of magnitude faster to reset with a print like this
          # instead of recreating the screen buffers.
          (colour, attr, bg) = self.palette["background"]
          self._canvas.clear_buffer(colour, attr, bg)
docs: Clear the current canvas.