[lldb-dev] Xcode 6 Merge: Line Editing

Kate Stone katherine_stone at apple.com
Fri Oct 3 14:17:59 PDT 2014


If you’ve used the Xcode 6 Swift REPL you may have noticed a number of changes to the way we handle line editing, particularly for text spanning multiple lines.  I intend to merge back the relevant line editing changes in the next few days and wanted to provide some advance warning that this is coming.  This completely replaces editline.h/cpp and makes non-trivial changes to IOHandler.h/cpp.  There are also minor changes to the command interpreter.  From the original commit log:

    Complete rewrite of interactive editing support for single- and multi-line input.
    
    Improvements include:
    * Use of libedit's wide character support, which is imperfect but a distinct improvement over ASCII-only
    * Use of "faint” colorization for line prompts
    * Breaking lines and insert new lines in the middle of a batch by simply pressing return
    * Joining lines with forward and backward character deletion
    * Detection of paste to suppress automatic formatting and statement completion tests
    * Correctly reformatting when lines grow or shrink to occupy different numbers of rows
    * Saving multi-line history, and correctly preserving the "tip" of history during editing
    * Displaying visible ^C and ^D indications when interrupting input or sending EOF
    * VI support for multi-line editing
    * General correctness and reliability improvements

The most obvious caveat here is that while these changes have been exercised on OS X, it’s certainly possible that we’ll see issues crop up on other platforms as a result.

Kate Stone k8stone at apple.com <mailto:k8stone at apple.com>
 Xcode Runtime Analysis Tools

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20141003/c60815be/attachment.html>


More information about the lldb-dev mailing list