ompi
ompi copied to clipboard
[FR] Color coding for ompi_info
Hello, I'd like to throw in a low-importance quality-of-life improvement: add colors to the output of ompi_info. I'm mostly thinking of this for MCA parameters, to help navigate long outputs.
I've prototyped an example of what something like this might look like:

Nice. One suggestion: enable colors only when the terminal has ANSI capabilities and we are not dumping the MCA as parsable.
That is super awesome - I love it! 🎉 Can you make a PR?
I do echo @bosilca's suggestion, though -- only use colors if it's a TTY (e.g., if you pipe the output of ompi_info through less or more or something, we don't want ANSI sequences in there.
Perfect! Yea, I will look around and see where to implement it.
I created #10820 (draft), and will gradually update it in the next days.