1. Georg Brandl
  2. pygments-main
  3. Issues
Issue #1371 new

Colors span multiple lines if color is not reset explicitly in TerminalFormatter

Mischa Krüger
created an issue

Hi ;)

we utilize the terminal rendering for displaying code, however on some terminals this happens:


The next line is wrongly marked too, but the green highlighting should be just in the single code line. It seems that this behaviour is terminal dependent:

Affected: Any vte-based terminal emulators, macOS terminal emulator. Not affected: st, termite, rxvt-unicode, xterm

We aren't sure if this should be handled in pygments or by ourselves, however we thought it might be worth to discuss it here.

Originated from GitHub issue https://github.com/coala/coala/issues/3544

Comments (0)

  1. Log in to comment