Page 1 of 1

Disable ESC sequences in VSCode Output Window

Posted: Fri Jan 05, 2024 11:43 pm
by SparkyNZ
How can I disable Esc character sequences in the VSCode OUTPUT window? I'm guessing these are being generated by whatever compiler IDF is using.

Alternatively, is there a recommended extension for VSCode that will handle these Esc character sequences?

Image

Re: Disable ESC sequences in VSCode Output Window

Posted: Sun Jan 07, 2024 7:58 pm
by SparkyNZ
Thanks to @MicroContrroller, I have a solution for this.

If I build using the VSCode extenstion (using the cylinder icon at the bottom of VSCode), it uses the Terminal window instead. All escape characters are gone and the output is colorized instead. If I use the gear icon or click on Build.. that's when I get the horrible mess.

Re: Disable ESC sequences in VSCode Output Window

Posted: Mon Jan 08, 2024 12:36 am
by micron
To get rid of the escape characters, as you said, you could use a color enabled terminal.

If you can't use a color enabled terminal, then, I believe the setting CONFIG_LOG_COLORS in sdkconfig should not be set.

At least, that got rid of them for me.

Re: Disable ESC sequences in VSCode Output Window

Posted: Mon Jan 08, 2024 12:48 am
by SparkyNZ
micron wrote:
Mon Jan 08, 2024 12:36 am
To get rid of the escape characters, as you said, you could use a color enabled terminal.

If you can't use a color enabled terminal, then, I believe the setting CONFIG_LOG_COLORS in sdkconfig should not be set.

At least, that god rid of them for me.
Thanks for that - I'm still see-sawing between using the VSCode extension and the command line.. so I'll make a note of that just in case :-)