diff options
author | gbrandl <devnull@localhost> | 2007-02-12 23:38:46 +0100 |
---|---|---|
committer | gbrandl <devnull@localhost> | 2007-02-12 23:38:46 +0100 |
commit | 8ac95bf314343f8db0ec8123296b60aefda8b02f (patch) | |
tree | 7813371046f03132d690b8556c857fc453e6c9b6 /pygments/formatters/terminal.py | |
parent | 16b1f0bb0fbc6ea7aab974cb220406632de4c7c0 (diff) | |
download | pygments-8ac95bf314343f8db0ec8123296b60aefda8b02f.tar.gz |
[svn] Quite a few things:
- new pygmentize options, -F for filters and -H for detail help.
- an automatically-created formatter map
- better HTML formatter subclassing
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) |