Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ANSI color sequences that apply to multiple lines in the terminal…
… logs (#3797) Previously the `linePrefix` would end with `RESET` and wipe out the colors after each line; now we parse each line and look at the ending color and print that at the start of the next line. There'll be some overhead, but `fansi.Str` is pretty fast so hopefully it's OK Tested manually, we can see the multi-line ansi colors that were problematic earlier now work, both preserving color, going from color to non-color and color to non-color <img width="976" alt="Screenshot 2024-10-21 at 6 52 15 PM" src="https://github.com/user-attachments/assets/3e21eb71-9e17-419c-8c23-194b959bfa44"> Fixes #3793
- Loading branch information