[LLVMbugs] [Bug 19919] New: Feature request: Enable automatic color output without terminfo
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Jun 2 06:35:57 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19919
Bug ID: 19919
Summary: Feature request: Enable automatic color output without
terminfo
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Support Libraries
Assignee: unassignedbugs at nondot.org
Reporter: daniel at constexpr.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 12590
--> http://llvm.org/bugs/attachment.cgi?id=12590&action=edit
Patch to fall-back to git's algorithm if terminfo is unavailable
Curretnly llvm needs to be build with terminfo support in order for colors to
be enabled automatically in clang diagnostics.
ncurses/terminfo is a bit of a heavy dependency if all you want is to determine
color support as that is pretty much universal for today's *nix terminal
emulators. This requirement for terminfo was introduced in r187874.
There has been some discussion on this on the mailing lis:
https://groups.google.com/forum/#!topic/llvm-dev/MqpXVMy6OrM
A suggestion from there that I'd like to see implemented is falling back to the
much simpler algorithm used by git to determine if the terminal supports color
codes:
https://github.com/git/git/blob/21ff9151e811059f5576ca906c519ee5bb5b925e/color.c#L183
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140602/56f6311b/attachment.html>
More information about the llvm-bugs
mailing list