(self, renditions=True)
return (scrollback, screen)
Dumps the terminal screen as a list of HTML-formatted lines.  If
        *renditions* is True (default) then terminal renditions will be
        converted into HTML <span> elements so they will be displayed properly
        in a browser.  Otherwise only the cursor <span> will be added to mark
        its location.

        .. note::

            This places <span class="cursor">(current character)</span> around
            the cursor location.
Dumps the terminal screen as a list of HTML-formatted lines.  If
        *renditions* is True (default) then terminal renditions will be
        converted into HTML <span> elements so they will be displayed properly
        in a browser.  Otherwise only the cursor <span> will be added to mark
        its location.
Dumps the terminal screen as a list of HTML - formatted lines . If * renditions * is True ( default ) then terminal renditions will be converted into HTML <span > elements so they will be displayed properly in a browser . Otherwise only the cursor <span > will be added to mark its location .
def dump_html(self, renditions=True):
        """
        Dumps the terminal screen as a list of HTML-formatted lines.  If
        *renditions* is True (default) then terminal renditions will be
        converted into HTML <span> elements so they will be displayed properly
        in a browser.  Otherwise only the cursor <span> will be added to mark
        its location.

        .. note::

            This places <span class="cursor">(current character)</span> around
            the cursor location.
        """
        if renditions: # i.e. Use stylized text (the default)
            screen = self._spanify_screen()
            scrollback = []
            if self.scrollback_buf:
                scrollback = self._spanify_scrollback()
        else:
            cursorX = self.cursorX
            cursorY = self.cursorY
            screen = []
            for y, row in enumerate(self.screen):
                if y == cursorY:
                    cursor_row = ""
                    for x, char in enumerate(row):
                        if x == cursorX:
                            cursor_row += (
                                '<span class="%scursor">%s</span>' % (
                                self.class_prefix, char))
                        else:
                            cursor_row += char
                    screen.append(cursor_row)
                else:
                    screen.append("".join(row))
            scrollback = [a.tounicode() for a in self.scrollback_buf]
        # Empty the scrollback buffer:
        self.init_scrollback()
        self.modified = False
        return (scrollback, screen)
def dump_html ( self , renditions = True ) : if renditions : # i.e. Use stylized text (the default) screen = self . _spanify_screen ( ) scrollback = [ ] if self . scrollback_buf : scrollback = self . _spanify_scrollback ( ) else : cursorX = self . cursorX cursorY = self . cursorY screen = [ ] for y , row in enumerate ( self . screen ) : if y == cursorY : cursor_row = "" for x , char in enumerate ( row ) : if x == cursorX : cursor_row += ( '<span class="%scursor">%s</span>' % ( self . class_prefix , char ) ) else : cursor_row += char screen . append ( cursor_row ) else : screen . append ( "" . join ( row ) ) scrollback = [ a . tounicode ( ) for a in self . scrollback_buf ] # Empty the scrollback buffer: self . init_scrollback ( ) self . modified = False return ( scrollback , screen )