[Lldb-commits] [lldb] [lldb] Underline short option letters as mnemonics (PR #153695)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 15 00:58:29 PDT 2025


DavidSpickett wrote:

A bit surprised that this is gated by colour (or indeed, color) or not, but I see that the colour option is basically the ANSI option. Other settings imply this:
```
  prompt-ansi-prefix -- When in a color-enabled terminal, use the ANSI terminal code specified in this
                        format immediately before the prompt.
```
So TIL that.

I think style wise, even if it's the first character of a sentence it should match the case of the character you'd type in. Whereas in a GUI app we have the expectation that you just press the key:
<img width="605" height="155" alt="Screenshot from 2025-08-15 08-44-51" src="https://github.com/user-attachments/assets/2022e0ab-734b-4a0e-8dfe-e338ae7ab098" />
If you did that in a terminal we wouldn't recognise `-I`.

(the GUI apps in fact only look for lower case, alt+shift something does not work)

Otherwise, I like it. Certainly leaves a trail for anyone wondering what it means.

https://github.com/llvm/llvm-project/pull/153695


More information about the lldb-commits mailing list