    def reset(self, text, colours):
        """
        Reset the parser to analyze the supplied raw text.

        :param text: raw text to process.
        :param colours: colour tuple to initialise the colour map.
        """
        super().reset(text, colours)
        if self._state.attributes is None:
            self._state.init_colours = False
            self._state.attributes = [None, None, None]
        else:
            self._state.init_colours = True
        self._state.offset = 0
        self._state.last_offset = 0
        self._state.cursor = 0
Reset the parser to analyze the supplied raw text.

:param text: raw text to process.
:param colours: colour tuple to initialise the colour map.
asciimatics/parsers.py