================
@@ -1925,6 +1959,17 @@ void Debugger::CancelForwardEvents(const ListenerSP 
&listener_sp) {
   m_forward_listener_sp.reset();
 }
 
+bool Debugger::StatuslineSupported() {
+  if (GetShowStatusline()) {
+    if (lldb::LockableStreamFileSP stream_sp = GetOutputStreamSP()) {
+      File &file = stream_sp->GetUnlockedFile();
+      return file.GetIsInteractive() && file.GetIsRealTerminal() &&
+             file.GetIsTerminalWithColors();
----------------
DavidSpickett wrote:

So we cannot use the status line without colours, is this intentional?

It would be a niche audience for sure but you could come up with a format 
string that made it stand out without colour I think.

https://github.com/llvm/llvm-project/pull/121860
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to