idf.py: ensure that build log is always sanitized from color sequences
idf.py: ensure that build log is always sanitized from color sequences

The actual output from the build tool (CMake/Ninja) may or may not
contain color escape codes, depending on various factors. The output
written to the log file should never include color escape codes,
though. This is because color escape codes in files are usually not
rendered as "color" in editors, and complicate reading. Also escape
codes would break the regular expressions used to display hints for
compilation errors.

espressif/esp-idf,espressif/esp-idf,espressif/esp-idf,espressif/esp-idf