[Bug 47008] New: gui mode corrupts lldb prompt after exiting

Bug ID 47008
Summary gui mode corrupts lldb prompt after exiting
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity enhancement
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter rupprecht@google.com
CC jdevlieghere@apple.com, llvm-bugs@lists.llvm.org

The lldb prompt is not very usable after exiting gui mode.

For example, starting with:

$ lldb
(lldb) gui
<just exit gui mode with ESC twice>

Now, hitting the up arrow should show:
(lldb) gui
But it shows:
"(lldb)    "
Quotes added for emphasis -- the cursor is three characters ahead of the
prompt, where the end of "gui" should be.

There are a bunch of oddities when trying to use the lldb prompt after exiting
the gui mode, this is just one example. Pretty much any usage yields unexpected
behavior.

Vishal Dalwadi changed bug 47008