Description

Format tokens with ANSI color sequences, for output in a text console. Color sequences are terminated at newlines, so that paging the output works correctly.

The `get_style_defs()` method doesn't do anything special since there is no support for common styles.

Options accepted:

`bg`

Set to ``"light"`` or ``"dark"`` depending on the terminal's background
(default: ``"light"``).

`colorscheme`

A dictionary mapping token types to (lightbg, darkbg) color names or
``None`` (default: ``None`` = use builtin colorscheme).

TerminalFormatter is referenced in 0 repositories