Check if the terminal is interactive and set the flags accordingly
llvm-svn: 202726
diff --git a/lldb/source/Host/common/File.cpp b/lldb/source/Host/common/File.cpp
index bb0ee39..1051757 100644
--- a/lldb/source/Host/common/File.cpp
+++ b/lldb/source/Host/common/File.cpp
@@ -887,7 +887,13 @@
{
m_is_interactive = eLazyBoolNo;
m_is_real_terminal = eLazyBoolNo;
-#ifndef _MSC_VER
+#ifdef _MSC_VER
+ if (_isatty(fd))
+ {
+ m_is_interactive = eLazyBoolYes;
+ m_is_real_terminal = eLazyBoolYes;
+ }
+#else
if (isatty(fd))
{
m_is_interactive = eLazyBoolYes;