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
The problem is that the ANSI escape codes that produce color are not "reset" at the end of each line. As a result, the color "bleeds" onto the next line of the whole terminal. The solution is to reset the color at the end of each line, and re-activate the color on the next line.
I think this solution should be in-corporated into the wrap and wordwrap packages of this module. But it looks like this repo is no longer activately maintained.
Note you'll run into this problem with any multi-line ANSI colored strings, with or without wrapping.
When the wrapping is done on the right of the terminal, the start of the line is highlighted (
aapt
in the screenshot).Here is the method setting the preview
and here is the view method:
The text was updated successfully, but these errors were encountered: