You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/06/29 12:34:56 UTC
[GitHub] [incubator-nuttx] fjpanag commented on pull request #6363: Added color reset when a syslog channel is added.
fjpanag commented on PR #6363:
URL: https://github.com/apache/incubator-nuttx/pull/6363#issuecomment-1169925719
@xiaoxiang781216 @pkarashchenko please have a look on this proposition.
I think that this is the "best" solution, handling most of the edge cases.
So, formatting is applied before any print, once for the date and other prefixes and if needed for the message itself.
When printing is complete, the color is reset.
This way printing is not affected by any previous colors applied, and it leaves the terminal in a normal state.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org