[PATCH] D97398: add print-changed mode that does not use colour

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 24 11:28:11 PST 2021


aeubanks added a comment.

In D97398#2585590 <https://reviews.llvm.org/D97398#2585590>, @jamieschmeiser wrote:

> I don't think we want auto-detection because the user needs to be able to control it.  If it is just going to the screen, the colour is useful, but if the output is being captured and brought up in emacs/vim/etc, the colour characters just show as control characters.  less on LINUX doesn't handle the colour characters; other utilities may also have problems with them.

I think the autodetection detects if the output supports color or not. e.g. https://clang.llvm.org/docs/UsersManual.html:

  -f[no-]color-diagnostics
  This option, which defaults to on when a color-capable terminal is detected, controls whether or not Clang prints diagnostics in color.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97398/new/

https://reviews.llvm.org/D97398



More information about the llvm-commits mailing list