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
console::strip_ansi_codes copies the entire string if it contains any ANSI. In cases where the stripped string needs to be written to something that implements Write, copying the string is completely unnecessary. If there was a struct like WithoutAnsi which implemented Display, it could be used to efficiently write to a serial port (my use case) without copying data.
I can make a PR for this, just let me know how the API should be. Imo it should be something like