0

I created a ~/.lldbinit file with only one setting:

settings set prompt "\x1b[0;33m(lldb) \x1b[0m"

hoping only to change the color of prompt. It works, very well, but then there comes an ugly indentation before every command. Like this:

(lldb)        l main
...
(lldb)        b 5
...

Before making any changes it was all OK:

(lldb) l main
...
(lldb) b 5
...

I'm using lldb-1103.0.22.10 on macOS Monterey version 12.7.6

1

1 Answer 1

1

If you want to change the color of the prompt, use the prompt-ansi-prefix and prompt-ansi-suffix settings.

Sign up to request clarification or add additional context in comments.

2 Comments

Is this what you mean: settings set prompt "\x1b[0;33m(lldb) \x1b[0m"
No. For instance, to get a red prompt, do: settings set prompt-ansi-prefix ${ansi.fg.red}. This color setting format is also used in the thread and frame formats, and you can see some examples in the docs for that: lldb.llvm.org/use/formatting.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.