[Lldb-commits] [PATCH] D121064: [lldb] Add a setting to change the autosuggestion ANSI escape codes

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sat Mar 5 19:11:50 PST 2022


JDevlieghere created this revision.
JDevlieghere added reviewers: labath, teemperor.
Herald added a project: All.
JDevlieghere requested review of this revision.

I'm a big fan of the autosuggestion feature but my terminal/color scheme doesn't display faint any differently than regular lldb output, which makes the feature a little confusing. This patch add a setting to change the autosuggestion ANSI escape codes.

For example, to display the autosuggestion in italic, you can add this to your `~/.lldbinit`

  settings set show-autosuggestion-ansi-prefix ${ansi.italic}
  setting set show-autosuggestion-ansi-suffix ${ansi.normal}


https://reviews.llvm.org/D121064

Files:
  lldb/include/lldb/Core/Debugger.h
  lldb/include/lldb/Host/Editline.h
  lldb/source/Core/CoreProperties.td
  lldb/source/Core/Debugger.cpp
  lldb/source/Core/IOHandler.cpp
  lldb/source/Host/common/Editline.cpp
  lldb/test/API/iohandler/autosuggestion/TestAutosuggestion.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121064.413267.patch
Type: text/x-patch
Size: 9283 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220306/3d225c13/attachment-0001.bin>


More information about the lldb-commits mailing list