1. 12

  2. 2

    last time I checked, adb logcat didn’t filter escape codes - fun way of sending android developers colorful messages.

    1. 2

      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.)

      1. 1

        I wish escape sequences to be simpler. What do we need more than this:

        • \033[*m - colour, boldness, reverse video
        • \033[K, \033[J - clear the screen or a line.
        • \r, \033[*H - put the cursor at some position
        • \n, \033D, \033M - scroll up and down one line.

        Everything else can be done by combinig these and printing again.