ansi

Filters for processing ANSI colors.

strip_ansi

def strip_ansi(
    source, term_queries:bool=False
):

Remove ANSI escape codes, including OSC sequences such as hyperlinks, from text.

ansi2html

def ansi2html(
    text
):

Convert ANSI colors to HTML colors.

ansi2latex

def ansi2latex(
    text
):

Convert ANSI colors to LaTeX colors.