    def close(self, restore=True):
        """
        Close down this Screen and tidy up the environment as required.

        :param restore: whether to restore the environment or not.
        """
Close down this Screen and tidy up the environment as required.

:param restore: whether to restore the environment or not.
asciimatics/screen.py