Colors of log text

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Colors of log text

Postby Deouss » Mon Mar 04, 2019 12:53 pm

I wrote a simple serial monitor that prints out ascii from UART0 which is default one on esp board and was wondering if there are any rules for what color or what type of log is being printed.
'Idf.py monitor' will show nice colorful warnings like errors in red and good status in green.
I would like to mimic the same behavior so I need some advice.
Thanks

ESP_Sprite
Posts: 9729
Joined: Thu Nov 26, 2015 4:08 am

Re: Colors of log text

Postby ESP_Sprite » Mon Mar 04, 2019 3:18 pm

Esp-idf spits out ANSI color codes. You'd need to interpret those.

Who is online

Users browsing this forum: No registered users and 96 guests