def attr(self, element):
        """
        Shortcut for fetching the color + attribute code for an element.
        """
        # The theme must be initialized before calling this
        assert self.theme is not None

        return self.theme.get(element)

        Shortcut for fetching the color + attribute code for an element.
        
rtv/terminal.py