[Lldb-commits] [lldb] [lldb] Add a setting to customize the prompt color (PR #66218)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 13 09:53:10 PDT 2023
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
More information about the lldb-commits
mailing list