[all-commits] [llvm/llvm-project] 645a38: [lldb] Add a setting to customize the prompt color...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Wed Sep 13 20:58:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 645a3855dda43275abfef4078b204d464a290ccc
      https://github.com/llvm/llvm-project/commit/645a3855dda43275abfef4078b204d464a290ccc
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2023-09-13 (Wed, 13 Sep 2023)

  Changed paths:
    M lldb/include/lldb/Core/Debugger.h
    M lldb/include/lldb/Host/Editline.h
    M lldb/source/Core/CoreProperties.td
    M lldb/source/Core/Debugger.cpp
    M lldb/source/Core/IOHandler.cpp
    M lldb/source/Host/common/Editline.cpp
    M lldb/test/API/terminal/TestEditline.py

  Log Message:
  -----------
  [lldb] Add a setting to customize the prompt color (#66218)

Users often want to change the look of their prompt and currently the
only way to do that is by using ANSI escape codes in the prompt itself.
This is not only tedious, it also results in extra whitespace because
our Editline wrapper, when computing the cursor column, doesn't ignore
the invisible escape codes.

We already have various *-ansi-{prefix,suffix} settings that allow the
users to customize the color of auto-suggestions and progress events,
using mnemonics like ${ansi.fg.yellow}. This patch brings the same
mechanism to the prompt.

rdar://115390406




More information about the All-commits mailing list