256-color terminal output formatter

Issue #254 resolved
Former user created an issue

Current terminal formatter for pygments outputs a color/attribute ANSI escape sequences for 16-color terminal. Attached is a terminal formatter that outputs escape sequences for 256-color XTERM-compatible terminal. Terminal256 formatter takes same 'style' parameter as HTML formatter and converts HTML colors to closest matching XTERM colors.

Reported by guest

Comments (6)

  1. gbrandl

    Thanks, reformatted according to PEP 8 and committed in r3699.

    If you want to change anything or address the TODOs, send me a patch any time!

  2. Log in to comment