Open ruipires opened 1 year ago
can you please show an example? It may not work perfectly for the current solution, since we need to parse the ansi color codes and highlight the matching parts in the file, so wondering you this can work.
This is what I see. The behavior seems to be the same with or without the trailing ^M.
The expectation (and the behavior of these on a terminal) is to have the second and third line still formatted according to the color set on the first line, i.e. until the color reset code is found, at the end of the third line.
ANSI code are free to change the color and that color will remain changed until it is reset or changed again. Currently (at least in my setup), the color changes are reset with each line.
I am running neovim, loading a file with ansi escape codes and applying them by running :ColorHighlight