You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Color changes are reset at the end of each line (and they shouldn't) #103
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
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.
Activity
chrisbra commentedon Dec 19, 2023
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.
ruipires commentedon Jan 8, 2024
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.