[Lldb-commits] [PATCH] D51772: Check if a terminal supports colors on Windows properly
Dávid Bolvanský via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sat Sep 8 00:18:18 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rLLDB341746: Check if a terminal supports colors on Windows properly (authored by xbolva00, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D51772
Files:
source/Core/Debugger.cpp
source/Host/common/File.cpp
Index: source/Core/Debugger.cpp
===================================================================
--- source/Core/Debugger.cpp
+++ source/Core/Debugger.cpp
@@ -812,7 +812,6 @@
// Enabling use of ANSI color codes because LLDB is using them to highlight
// text.
llvm::sys::Process::UseANSIEscapeCodes(true);
- SetUseColor(true);
#endif
}
Index: source/Host/common/File.cpp
===================================================================
--- source/Host/common/File.cpp
+++ source/Host/common/File.cpp
@@ -806,6 +806,9 @@
if (_isatty(fd)) {
m_is_interactive = eLazyBoolYes;
m_is_real_terminal = eLazyBoolYes;
+#if defined(ENABLE_VIRTUAL_TERMINAL_PROCESSING)
+ m_supports_colors = eLazyBoolYes;
+#endif
}
#else
if (isatty(fd)) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51772.164566.patch
Type: text/x-patch
Size: 781 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20180908/daa34a62/attachment.bin>
More information about the lldb-commits
mailing list