git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] help: colorize man pages

From
IDIgor Djordjevic <igor.d.djordjevic@gmail.com>
Date
May 21, 2021, 19:48 UTC
Message-ID
<8811383b-d5f1-2b06-8ac7-47bbc5fc9d20@gmail.com>
In-Reply-To
<60a7f7427eab6_55039208ba@natae.notmuch>
Hi all,

If I may, NO_COLOR approach seems to be rather straightforward to me, as per description on their homepage[1] - make all software supporting it behave as colors are an opt-in feature, thus disabled by default.

And that's all there is to it.

Software which is able to but does not show any colors by default does not need to care at all, as colors are an opt-in feature there already, so NO_COLOR serves no purpose.

On the other hand, software which does enable (at least some) color by default, without user explicitly setting anything but requiring opt-out to disable color instead, should treat NO_COLOR precisely as that user requested opt-out, with an obvious convenience for the user being able to set NO_COLOR globally once and have all the programs supporting it recognize it as color opt-out exactly, without a need for the user to opt-out in each and every program separately (and differently).

So, the whole point is make the default value be "no color" for each and every application consistently, where user (and _not_ developer) needs to opt-in in order to enable colors (in each and every application where colors are in fact still desired).

Regards, Buga -- [1]: https://no-color.org/

Previous: Felipe ContrerasNext: Felipe Contreras
Message 12 of 33 in “help: colorize man pages”
  1. help: colorize man pagesFelipe Contreras, May 18, 2021
  2. brian m. carlsonMay 18, 2021
  3. Felipe ContrerasMay 18, 2021
  4. brian m. carlsonMay 18, 2021
  5. Junio C HamanoMay 19, 2021
  6. brian m. carlsonMay 19, 2021
  7. Junio C HamanoMay 19, 2021
  8. Ævar Arnfjörð BjarmasonMay 19, 2021
  9. Felipe ContrerasMay 19, 2021
  10. brian m. carlsonMay 21, 2021
  11. Felipe ContrerasMay 21, 2021
  12. Igor DjordjevicMay 21, 2021
  13. Felipe ContrerasMay 21, 2021
  14. Igor DjordjevicMay 21, 2021
  15. Felipe ContrerasMay 21, 2021
  16. Igor DjordjevicMay 22, 2021
  17. Felipe ContrerasMay 22, 2021
  18. Igor DjordjevicMay 23, 2021
  19. Felipe ContrerasMay 23, 2021
  20. Igor DjordjevicMay 21, 2021
  21. Junio C HamanoMay 21, 2021
  22. Ævar Arnfjörð BjarmasonMay 19, 2021
  23. Jeff KingMay 19, 2021
  24. Felipe ContrerasMay 19, 2021
  25. Felipe ContrerasMay 19, 2021
  26. Felipe ContrerasMay 19, 2021
  27. brian m. carlsonMay 20, 2021
  28. Junio C HamanoMay 20, 2021
  29. Felipe ContrerasMay 20, 2021
  30. Junio C HamanoMay 20, 2021
  31. Felipe ContrerasMay 20, 2021
  32. Felipe ContrerasMay 20, 2021
  33. Felipe ContrerasMay 19, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.