last time I checked, adb logcat didn’t filter escape codes - fun way of sending android developers colorful messages.
I remember finding a bug like this in Apple Terminal; I ended up writing a blog post about it for my employer at the time:
(Search for TPTI-09-04 on that page if you want to skip past the unrelated intro.)
I wish escape sequences to be simpler. What do we need more than this:
Everything else can be done by combinig these and printing again.