diff options
Diffstat (limited to 'pygments/formatters/terminal.py')
-rw-r--r-- | pygments/formatters/terminal.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pygments/formatters/terminal.py b/pygments/formatters/terminal.py index fa030d86..cad37c7d 100644 --- a/pygments/formatters/terminal.py +++ b/pygments/formatters/terminal.py @@ -52,7 +52,7 @@ TERMINAL_COLORS = { class TerminalFormatter(Formatter): r""" - Formats tokens with ANSI color sequences, for output in a text console. + 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. @@ -69,6 +69,9 @@ class TerminalFormatter(Formatter): A dictionary mapping token types to (lightbg, darkbg) color names or ``None`` (default: ``None`` = use builtin colorscheme). """ + name = 'Terminal' + aliases = ['terminal', 'console'] + filenames = [] def __init__(self, **options): Formatter.__init__(self, **options) |