JDevlieghere wrote:

> > What happens if you have colors disabled in your terminal? Does this do 
> > nothing? Or does it start inserting ANSI escape codes in plain text?
> 
> Yea good question, was about to try this out. It does whatever clang's 
> `ast-dump` would do if colors aren't turned off

That keys off of the output stream supporting colors, but LLDB also allows you 
to disable colors globally. Please also try `lldb --no-use-colors` and see if 
that behaves correctly (it might if we set the properties of the stream 
correctly). If it doesn't you'll need to read `debugger.GetUseColor()`. 

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

Reply via email to