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

Issue #1371 new
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

Comments (0)

  1. Log in to comment