module documentation

pygments.formatters.terminal ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Formatter for terminal output with ANSI sequences. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details.

Class TerminalFormatter 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.
Constant TERMINAL_COLORS Undocumented
TERMINAL_COLORS = (source)

Undocumented

Value
{Token: ('', ''),
 Whitespace: ('gray', 'brightblack'),
 Comment: ('gray', 'brightblack'),
 Comment.Preproc: ('cyan', 'brightcyan'),
 Keyword: ('blue', 'brightblue'),
 Keyword.Type: ('cyan', 'brightcyan'),
 Operator.Word: ('magenta', 'brightmagenta'),
...