        def set_title(self, title):
            """
            Set the title for this terminal/console session.  This will
            typically change the text displayed in the window title bar.

            :param title: The title to be set.
            """
            if self._start_line is not None:
                self._safe_write(f"{self._start_title}{title}{self._end_title}")
Set the title for this terminal/console session.  This will
typically change the text displayed in the window title bar.

:param title: The title to be set.
asciimatics/screen.py