Why does the terminal show strange chars for ESP32

For ESP32, When I print to the terminal using ESP_LOGx I get weird characters in front of what I am printing. What is causing this ?
Looks like this.

␛[0m32mI (15624) Debug: Task2:93 - Task3:188
␛[0m32mI (15724) Debug: Task2:94 - Task3:190
␛[0m32mI (15824) Debug: Task2:95 - Task3:192
␛[0m32mI (15924) Debug: Task2:96 - Task3:194
␛[0m32mI (16024) Debug: Task2:97 - Task3:196
␛[0m32mI (16124) Debug: Task2:98 - Task3:198
␛[0m32mI (16224) Debug: Task2:99 - Task3:200
␛[0m32mI (16324) Debug: Task2:100 - Task3:202
␛[0m32mI (16424) Debug: Task2:101 - Task3:204
␛[0m32mI (16524) Debug: Task2:102 - Task3:206
␛[0m32mI (16624) Debug: Task2:103 - Task3:208
␛[0m32mI (16724) Debug: Task2:104 - Task3:210

Yet if I open another terminal program like TeraTerm or Putty i get this (which is what it should look like)

I (12324) Debug: Task2:60 - Task3:122
I (12424) Debug: Task2:61 - Task3:124
I (12524) Debug: Task2:62 - Task3:126
I (12624) Debug: Task2:63 - Task3:128
I (12724) Debug: Task2:64 - Task3:130
I (12824) Debug: Task2:65 - Task3:132
I (12924) Debug: Task2:66 - Task3:134
I (13024) Debug: Task2:67 - Task3:136
I (13124) Debug: Task2:68 - Task3:138
I (13224) Debug: Task2:69 - Task3:140
I (13324) Debug: Task2:70 - Task3:142
I (13424) Debug: Task2:71 - Task3:144
I (13524) Debug: Task2:72 - Task3:146
I (13624) Debug: Task2:73 - Task3:148
I (13724) Debug: Task2:74 - Task3:15

These are color codes, which can be made to show up properly by using monitor_raw = yes in the platformio.ini, see

1 Like

Thank you very much!