[all-commits] [llvm/llvm-project] f2e654: [lldb][Editline] Support ctrl+left/right arrow wor...

Jordan Rupprecht via All-commits all-commits at lists.llvm.org
Thu Nov 14 11:43:51 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f2e65447b3cb6340883957e033e77095a025ebdc
      https://github.com/llvm/llvm-project/commit/f2e65447b3cb6340883957e033e77095a025ebdc
  Author: Jordan Rupprecht <rupprecht at google.com>
  Date:   2019-11-14 (Thu, 14 Nov 2019)

  Changed paths:
    A lldb/packages/Python/lldbsuite/test/terminal/TestEditline.py
    M lldb/source/Host/common/Editline.cpp

  Log Message:
  -----------
  [lldb][Editline] Support ctrl+left/right arrow word navigation.

Summary:
This adds several 5C/5D escape codes that allow moving forward/backward words similar to bash command line navigation.

On my terminal, `ctrl+v ctrl+<left arrow>` prints `^[[1;5D`. However, it seems inputrc also maps other escape variants of this to forward/backward word, so I've included those too. Similar for 5C = ctrl+right arrow.

Reviewers: JDevlieghere, labath

Reviewed By: JDevlieghere, labath

Subscribers: merge_guards_bot, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D70137




More information about the All-commits mailing list