Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lldb/source/Host/common/Editline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1626,6 +1626,9 @@ bool Editline::GetLine(std::string &line, bool &interrupted) {
m_editor_status = EditorStatus::Editing;
m_revert_cursor_index = -1;

lldbassert(m_output_stream_sp);
fprintf(m_locked_output->GetFile().GetStream(), "\r" ANSI_CLEAR_RIGHT);

int count;
auto input = el_wgets(m_editline, &count);

Expand Down
2 changes: 1 addition & 1 deletion lldb/test/API/terminal/TestEditline.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def test_prompt_no_color(self):
# after the prompt.
self.child.send("foo")
# Check that there are no escape codes.
self.child.expect(re.escape("\n(lldb) foo"))
self.child.expect(re.escape("\n\r\x1b[K(lldb) foo"))

@skipIfAsan
@skipIfEditlineSupportMissing
Expand Down
Loading