[Lldb-commits] [lldb] r202726 - Check if the terminal is interactive and set the flags accordingly
Deepak Panickal
deepak at codeplay.com
Mon Mar 3 07:53:37 PST 2014
Author: panickal
Date: Mon Mar 3 09:53:37 2014
New Revision: 202726
URL: http://llvm.org/viewvc/llvm-project?rev=202726&view=rev
Log:
Check if the terminal is interactive and set the flags accordingly
Modified:
lldb/trunk/source/Host/common/File.cpp
Modified: lldb/trunk/source/Host/common/File.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/File.cpp?rev=202726&r1=202725&r2=202726&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/File.cpp (original)
+++ lldb/trunk/source/Host/common/File.cpp Mon Mar 3 09:53:37 2014
@@ -887,7 +887,13 @@ File::CalculateInteractiveAndTerminal ()
{
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;
More information about the lldb-commits
mailing list