[Lldb-commits] [PATCH] D108385: [LLDB][GUI] Add extra keys to text field

Omar Emara via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 19 09:34:01 PDT 2021


OmarEmaraDev created this revision.
OmarEmaraDev added a reviewer: clayborg.
Herald added a reviewer: teemperor.
OmarEmaraDev requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

This patch adds many new keys to the text field and implements new
behaviors as follows:

case KEY_HOME:
case KEY_CTRL_A:

  MoveCursorToStart();

case KEY_END:
case KEY_CTRL_E:

  MoveCursorToEnd();

case KEY_RIGHT:
case KEY_SF:

  MoveCursorRight();

case KEY_LEFT:
case KEY_SR:

  MoveCursorLeft();

case KEY_BACKSPACE:
case KEY_DELETE:

  RemovePreviousChar();

case KEY_DC:

  RemoveNextChar();

case KEY_EOL:
case KEY_CTRL_K:

  ClearToEnd();

case KEY_DL:
case KEY_CLEAR:

  Clear();

This patch also refactors scrolling to be dynamic at draw time for
easier handing.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108385

Files:
  lldb/source/Core/IOHandlerCursesGUI.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108385.367527.patch
Type: text/x-patch
Size: 5117 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210819/89516987/attachment.bin>


More information about the lldb-commits mailing list