Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Welcome to the site, and thank you for your contribution. Please note however that the approach of using sed to post-process the raw output and introduce color escape codes was already mentioned in the answer by @Gilles. Please review your answer and decide whether your approach is sufficiently distinct to warrant a post of its own, or if it should rather be an edit to add details to the mentioned answer. Commented Nov 9, 2021 at 8:16
  • @AdminBee Thanks :) and hello. While the other question mentions using sed, it doesn't work on Mac, I've tried it. The start of the line gets replaced with o033[32m and end o033[39m, and its not coloured. I believe this is because the way unix escapes part of it. Ive searched high and wide for a solution to this, but nothing worked. Commented Nov 9, 2021 at 9:40