[Lldb-commits] [PATCH] D51243: Disable use-color if the output stream is not a terminal with color support.
Raphael Isemann via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 24 17:16:11 PDT 2018
teemperor added inline comments.
================
Comment at: source/Core/Debugger.cpp:805
const char *term = getenv("TERM");
if (term && !strcmp(term, "dumb"))
SetUseColor(false);
----------------
aprantl wrote:
> aprantl wrote:
> > Shouldn't this check be obsolete now?
> You can probably test that by running env TERM=dumb lldb
LLVM doesn't seem to check for this environment variable from what I see, so the new code doesn't include this functionality. And it's technically a good thing to check for this, so I think we should let it stay until LLVM also adds this feature.
Repository:
rLLDB LLDB
https://reviews.llvm.org/D51243
More information about the lldb-commits
mailing list