cancel
Showing results for 
Search instead for 
Did you mean: 

Suppress color from STM32_Programmer_CLI

JesperEC
Associate III

An old thread by @NVinc.1 on the subject: suppress color from STM32_Programmer_CLI - STMicroelectronics Community

This was never answered by anyone from ST, but I think it ST should track it as a feature request.

The suggested workaround to clean-up the output with sed or awk, is really only a band-aid.

On Linux, the tool should behave like other console programs and only emit color and other formatting ANSI escape-sequences if stdout and stderr (if used) is connected to a terminal.

It should behave that way on Windows too but I don't know enough about Windows development to say how technically feasible that is.

Finally, an standard option --color=WHEN where WHEN is always, auto or never would be good to take care of edge cases where detection doesn't work or you want to force coloring because the output is intended to be shown in a tool that can handle it. For example some job's console-output display in a CI runner.

   Best regards, Jesper

 

 

0 REPLIES 0
Announcement

We’re moving the ST Community to a new platform to give you a better and more reliable community experience.