**ansi2html**
=================================
.. py:module:: optimeed.core.ansi2html
.. toctree::
:titlesonly:
:maxdepth: 1
converter/index.rst
style/index.rst
util/index.rst
Package Contents
----------------
Classes
~~~~~~~
.. autoapisummary::
optimeed.core.ansi2html.Ansi2HTMLConverter
.. py:class:: Ansi2HTMLConverter(latex=False, inline=False, dark_bg=True, line_wrap=True, font_size='normal', linkify=False, escaped=True, markup_lines=False, output_encoding='utf-8', scheme='ansi2html', title='')
Bases: :py:obj:`object`
Convert Ansi color codes to CSS+HTML
Example:
>>> conv = Ansi2HTMLConverter()
>>> ansi = " ".join(sys.stdin.readlines())
>>> html = conv.convert(ansi)
.. py:method:: apply_regex(ansi)
.. py:method:: _apply_regex(ansi, styles_used)
.. py:method:: _collapse_cursor(parts)
Act on any CursorMoveUp commands by deleting preceding tokens
.. py:method:: prepare(ansi='', ensure_trailing_newline=False)
Load the contents of 'ansi' into this object
.. py:method:: attrs()
Prepare attributes for the template
.. py:method:: convert(ansi, full=True, ensure_trailing_newline=False)
.. py:method:: produce_headers()