https://github.com/clayborg commented:

Any interest in just allowing "settings set prompt" to use the format strings 
approach that we support in thread-format, frame-format? I see we have a ton of 
settings that already ansi-prefix and ansi-suffix settings, but it would be 
easy to just do:
```
(lldb) setting set prompt "${ansi.fg.red}(lldb) ${ansi.normal}"
```
It we didn't just expand the above string one time, we could be able to make 
some really powerful LLDB prompts if we used the format strings:
```
(lldb) setting set prompt "{pid = ${process.id} }{tid = ${thread.id%tid}} 
${ansi.fg.red}(lldb) ${ansi.normal}"
```
Just an idea, not a requirement for this patch

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

Reply via email to