Skip to content

Commit 1167152

Browse files
committed
[lldb] Always move the cursor back after printing progress
This got lost while iterating on the patch. We need to always move the cursor to the front of the line so that if something else (asynchronously) prints to the debugger's output it overwrites the progress message.
1 parent 097d46f commit 1167152

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Core/Debugger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1813,7 +1813,7 @@ void Debugger::HandleProgressEvent(const lldb::EventSP &event_sp) {
18131813
"%s", ansi::FormatAnsiTerminalCodes(ansi_suffix, use_color).c_str());
18141814

18151815
// Clear until the end of the line.
1816-
output.Printf("\x1B[K");
1816+
output.Printf("\x1B[K\r");
18171817

18181818
// Flush the output.
18191819
output.Flush();

0 commit comments

Comments
 (0)