[all-commits] [llvm/llvm-project] 080635: [lldb] Add a setting to change the autosuggestion ...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Mon Mar 7 08:55:25 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 080635ef27914c3f0c20d221bc2f02ab6f13e6b4
      https://github.com/llvm/llvm-project/commit/080635ef27914c3f0c20d221bc2f02ab6f13e6b4
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2022-03-07 (Mon, 07 Mar 2022)

  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/iohandler/autosuggestion/TestAutosuggestion.py

  Log Message:
  -----------
  [lldb] Add a setting to change the autosuggestion ANSI escape codes

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}

Differential revision: https://reviews.llvm.org/D121064




More information about the All-commits mailing list